File tree Expand file tree Collapse file tree 2 files changed +20
-8
lines changed Expand file tree Collapse file tree 2 files changed +20
-8
lines changed Original file line number Diff line number Diff line change @@ -226,3 +226,21 @@ jobs:
226226
227227 - name : Test with embed feature
228228 run : cargo test --workspace --release --features closure,embed,anyhow --no-fail-fast
229+
230+ trigger-release-plz :
231+ name : Trigger Release Workflow
232+ runs-on : ubuntu-latest
233+ needs : [lint, build, test-embed]
234+ if : github.ref == 'refs/heads/master' && github.event_name == 'push'
235+ steps :
236+ - name : Trigger release-plz workflow
237+ uses : actions/github-script@v8
238+ with :
239+ github-token : ${{ secrets.GITHUB_TOKEN }}
240+ script : |
241+ await github.rest.actions.createWorkflowDispatch({
242+ owner: context.repo.owner,
243+ repo: context.repo.repo,
244+ workflow_id: 'release-plz.yml',
245+ ref: 'master'
246+ });
Original file line number Diff line number Diff line change @@ -5,22 +5,17 @@ permissions:
55 contents : write
66
77on :
8- workflow_run :
9- workflows : ["Build and Lint"]
10- branches : ["master"]
11- types :
12- - completed
8+ workflow_dispatch :
139
1410jobs :
1511 release-plz-release :
1612 name : Release-plz release
1713 runs-on : ubuntu-latest
1814 permissions :
1915 id-token : write
20- if : ${{ github.event.workflow_run.conclusion == 'success' }}
2116 env :
2217 clang : ' 17'
23- php_version : ' 8.2 '
18+ php_version : ' 8.4 '
2419 steps :
2520 - name : Checkout repository
2621 uses : actions/checkout@v5
6863 runs-on : ubuntu-latest
6964 permissions :
7065 id-token : write
71- if : ${{ github.event.workflow_run.conclusion == 'success' }}
7266 concurrency :
7367 group : release-plz-${{ github.ref }}
7468 cancel-in-progress : false
You can’t perform that action at this time.
0 commit comments