Skip to content

Commit 63925a3

Browse files
committed
fix(release-plz): update workflow to run release-plz
1 parent f0918f7 commit 63925a3

File tree

2 files changed

+20
-8
lines changed

2 files changed

+20
-8
lines changed

.github/workflows/build.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff 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+
});

.github/workflows/release-plz.yml

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,22 +5,17 @@ permissions:
55
contents: write
66

77
on:
8-
workflow_run:
9-
workflows: ["Build and Lint"]
10-
branches: ["master"]
11-
types:
12-
- completed
8+
workflow_dispatch:
139

1410
jobs:
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
@@ -68,7 +63,6 @@ jobs:
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

0 commit comments

Comments
 (0)