Skip to content

Commit

Permalink
fix: made release to run only on main branch
Browse files Browse the repository at this point in the history
  • Loading branch information
berishaerblin authored and mlec1 committed Sep 4, 2024
1 parent 1b03a17 commit 302b205
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
name: Release

on:
push:
branches:
- main
workflow_run:
workflows: ["step.tech_matrix_prep", "Validate"]
types:
Expand All @@ -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
Expand Down

0 comments on commit 302b205

Please sign in to comment.