notify in release
This commit is contained in:
parent
f1917551f8
commit
022d0dcad5
3 changed files with 20 additions and 20 deletions
5
.changeset/test-downstream-notification.md
Normal file
5
.changeset/test-downstream-notification.md
Normal file
|
|
@ -0,0 +1,5 @@
|
||||||
|
---
|
||||||
|
"@reuters-graphics/graphics-components": patch
|
||||||
|
---
|
||||||
|
|
||||||
|
Test downstream notification workflow with updated reusable workflow
|
||||||
20
.github/workflows/notify-downstream.yaml
vendored
20
.github/workflows/notify-downstream.yaml
vendored
|
|
@ -1,20 +0,0 @@
|
||||||
name: Notify downstream repositories
|
|
||||||
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
tags:
|
|
||||||
- 'v*'
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
dispatch:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- name: Wait for npm propagation
|
|
||||||
run: sleep 30
|
|
||||||
|
|
||||||
- name: Dispatch to bluprint_graphics-kit
|
|
||||||
uses: peter-evans/repository-dispatch@v4
|
|
||||||
with:
|
|
||||||
token: ${{ secrets.REPO_PAT_TOKEN }}
|
|
||||||
repository: reuters-graphics/bluprint_graphics-kit
|
|
||||||
event-type: dependency-updated
|
|
||||||
15
.github/workflows/release.yaml
vendored
15
.github/workflows/release.yaml
vendored
|
|
@ -12,3 +12,18 @@ jobs:
|
||||||
with:
|
with:
|
||||||
node_version: '20'
|
node_version: '20'
|
||||||
publish_docs: true
|
publish_docs: true
|
||||||
|
|
||||||
|
notify-downstream:
|
||||||
|
needs: release
|
||||||
|
if: needs.release.outputs.published == 'true'
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Wait for npm propagation
|
||||||
|
run: sleep 30
|
||||||
|
|
||||||
|
- name: Dispatch to bluprint_graphics-kit
|
||||||
|
uses: peter-evans/repository-dispatch@v4
|
||||||
|
with:
|
||||||
|
token: ${{ secrets.REPO_PAT_TOKEN }}
|
||||||
|
repository: reuters-graphics/bluprint_graphics-kit
|
||||||
|
event-type: dependency-updated
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue