Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -226,3 +226,21 @@ jobs:
- name: Test with embed feature
run: cargo test --workspace --release --features closure,embed,anyhow --no-fail-fast

trigger-release-plz:
name: Trigger Release Workflow
runs-on: ubuntu-latest
needs: [lint, build, test-embed]
if: github.ref == 'refs/heads/master' && github.event_name == 'push'
steps:
- name: Trigger release-plz workflow
uses: actions/github-script@v8
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
await github.rest.actions.createWorkflowDispatch({
owner: context.repo.owner,
repo: context.repo.repo,
workflow_id: 'release-plz.yml',
ref: 'master'
});
10 changes: 2 additions & 8 deletions .github/workflows/release-plz.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,22 +5,17 @@ permissions:
contents: write

on:
workflow_run:
workflows: ["Build and Lint"]
branches: ["master"]
types:
- completed
workflow_dispatch:

jobs:
release-plz-release:
name: Release-plz release
runs-on: ubuntu-latest
permissions:
id-token: write
if: ${{ github.event.workflow_run.conclusion == 'success' }}
env:
clang: '17'
php_version: '8.2'
php_version: '8.4'
steps:
- name: Checkout repository
uses: actions/checkout@v5
Expand Down Expand Up @@ -68,7 +63,6 @@ jobs:
runs-on: ubuntu-latest
permissions:
id-token: write
if: ${{ github.event.workflow_run.conclusion == 'success' }}
concurrency:
group: release-plz-${{ github.ref }}
cancel-in-progress: false
Expand Down
Loading