diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index cc0a2367ed..e0565c09e9 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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' + }); diff --git a/.github/workflows/release-plz.yml b/.github/workflows/release-plz.yml index ca5fe32065..22c055c0a5 100644 --- a/.github/workflows/release-plz.yml +++ b/.github/workflows/release-plz.yml @@ -5,11 +5,7 @@ permissions: contents: write on: - workflow_run: - workflows: ["Build and Lint"] - branches: ["master"] - types: - - completed + workflow_dispatch: jobs: release-plz-release: @@ -17,10 +13,9 @@ jobs: 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 @@ -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