diff --git a/.github/workflows/release_pr.yml b/.github/workflows/release_pr.yml index b3b59934..2b0411f6 100644 --- a/.github/workflows/release_pr.yml +++ b/.github/workflows/release_pr.yml @@ -19,7 +19,7 @@ jobs: release-pr: name: Release PR runs-on: ubuntu-latest - if: ${{ github.event.workflow_run.conclusion == 'success' }} + if: ${{ (github.event_name == 'workflow_run' && github.event.workflow_run.conclusion == 'success') || github.event_name == 'workflow_dispatch' }} steps: - name: Checkout repository uses: actions/checkout@v4 @@ -36,6 +36,6 @@ jobs: CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }} on-powerset-failure: runs-on: ubuntu-latest - if: ${{ github.event.workflow_run.conclusion == 'failure' }} + if: ${{ (github.event_name == 'workflow_run' && github.event.workflow_run.conclusion == 'failure') }} steps: - run: echo 'The `Feature Powerset` workflow failed, skipping release.'