diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index e0565c09e9..cc0a2367ed 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -226,21 +226,3 @@ 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 22c055c0a5..87353ed067 100644 --- a/.github/workflows/release-plz.yml +++ b/.github/workflows/release-plz.yml @@ -5,7 +5,11 @@ permissions: contents: write on: - workflow_dispatch: + workflow_run: + workflows: ["Build and Lint"] + branches: ["master"] + types: + - completed jobs: release-plz-release: @@ -56,7 +60,6 @@ jobs: command: release env: GITHUB_TOKEN: ${{ secrets.RELEASE_PLZ_TOKEN }} - CARGO_REGISTRY_TOKEN: ${{ steps.auth.outputs.token }} release-plz-pr: name: Release-plz PR @@ -82,4 +85,3 @@ jobs: command: release-pr env: GITHUB_TOKEN: ${{ secrets.RELEASE_PLZ_TOKEN }} - CARGO_REGISTRY_TOKEN: ${{ steps.auth.outputs.token }}