diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index ba35f5be..42a3d428 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -1,5 +1,9 @@ name: Release + on: + push: + branches: + - main workflow_run: workflows: ["step.tech_matrix_prep", "Validate"] types: @@ -17,7 +21,7 @@ jobs: issues: write # to be able to comment on released issues pull-requests: write # to be able to comment on released pull requests id-token: write # to enable use of OIDC for npm provenance - if: ${{ github.event.workflow_run.conclusion == 'success' }} # Ensures it only runs if both workflows passed + if: ${{ github.event_name == 'push' || github.event.workflow_run.conclusion == 'success' }} steps: - name: Checkout uses: actions/checkout@v4