Skip to content

Commit b72a56f

Browse files
ci(release): try repository dispatch event
1 parent 18a12ca commit b72a56f

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.github/workflows/release.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
name: Release
22

33
on:
4-
workflow_dispatch:
54
push:
65
branches: [main, alpha, beta, rc, v4]
6+
repository_dispatch:
7+
types: [release]
78

89
concurrency:
910
group: ${{ github.workflow }}-${{ github.event.number || github.ref }}
@@ -13,7 +14,6 @@ env:
1314
NX_CLOUD_ACCESS_TOKEN: ${{ secrets.NX_CLOUD_ACCESS_TOKEN }}
1415

1516
permissions:
16-
actions: write
1717
contents: write
1818
id-token: write
1919
pull-requests: write
@@ -52,9 +52,10 @@ jobs:
5252
if: steps.changesets.outputs.hasChangesets == 'true'
5353
run: |
5454
gh pr merge --squash "$PR_NUMBER"
55-
gh workflow run release.yml --ref main
55+
gh api --method POST /repos/$REPO/dispatches -f 'event_type=release'
5656
env:
5757
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
58+
REPO: ${{ github.repository }}
5859
PR_NUMBER: ${{ steps.changesets.outputs.pullRequestNumber }}
5960
- name: Upload coverage to Codecov
6061
uses: codecov/[email protected]

0 commit comments

Comments
 (0)