From 302b20583efae767f1b9c6e4ed7c363234ea8656 Mon Sep 17 00:00:00 2001 From: Erblin Berisha Date: Wed, 4 Sep 2024 02:15:58 +0200 Subject: [PATCH] fix: made release to run only on main branch --- .github/workflows/release.yaml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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