File tree Expand file tree Collapse file tree 2 files changed +5
-21
lines changed Expand file tree Collapse file tree 2 files changed +5
-21
lines changed Original file line number Diff line number Diff line change @@ -226,21 +226,3 @@ 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,7 +5,11 @@ permissions:
55 contents : write
66
77on :
8- workflow_dispatch :
8+ workflow_run :
9+ workflows : ["Build and Lint"]
10+ branches : ["master"]
11+ types :
12+ - completed
913
1014jobs :
1115 release-plz-release :
5660 command : release
5761 env :
5862 GITHUB_TOKEN : ${{ secrets.RELEASE_PLZ_TOKEN }}
59- CARGO_REGISTRY_TOKEN : ${{ steps.auth.outputs.token }}
6063
6164 release-plz-pr :
6265 name : Release-plz PR
8285 command : release-pr
8386 env :
8487 GITHUB_TOKEN : ${{ secrets.RELEASE_PLZ_TOKEN }}
85- CARGO_REGISTRY_TOKEN : ${{ steps.auth.outputs.token }}
You can’t perform that action at this time.
0 commit comments