Skip to content

Commit 250c45e

Browse files
chore: Update release.yml to release downstream repositories (#3484)
1 parent 0bb07ca commit 250c45e

File tree

1 file changed

+20
-1
lines changed

1 file changed

+20
-1
lines changed

.github/workflows/release.yml

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,23 @@ jobs:
2929
with:
3030
skip-test: true
3131
role-to-assume: ${{ inputs.role-to-assume }}
32-
project-name: ${{ inputs.project-name }}
32+
project-name: ${{ inputs.project-name }}
33+
34+
trigger-downstream:
35+
needs: [release]
36+
runs-on: ubuntu-latest
37+
if: github.ref == 'refs/heads/main'
38+
strategy:
39+
matrix:
40+
repository: [chat-components]
41+
steps:
42+
- name: Trigger release in downstream repository
43+
run: |
44+
curl -L \
45+
-X POST \
46+
-H "Accept: application/vnd.github+json" \
47+
-H "Authorization: Bearer ${{ secrets.WORKFLOW_DISPATCH_TOKEN }}" \
48+
-H "X-GitHub-Api-Version: 2022-11-28" \
49+
https://api.github.com/repos/cloudscape-design/${{ matrix.repository }}/dispatches \
50+
-d "{\"event_type\": \"run-release\"}"
51+

0 commit comments

Comments
 (0)