Skip to content

Commit

Permalink
ci(release): Add branch filter to workflow_run trigger
Browse files Browse the repository at this point in the history
We only want release to run on main
  • Loading branch information
chris3ware committed Sep 10, 2024
1 parent be53d91 commit cfdd62f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,14 @@ on:
workflow_run:
workflows: [OpenTofu CI]
types: [completed]
branches: [main]

# Disable permissions for all available scopes
permissions: {}

jobs:
semantic-release:
#TODO: Add condition to only run on main
if: ${{ github.event.workflow_run.conclusion == 'success' }}
name: Release
uses: 3ware/workflows/.github/workflows/release.yaml@30a4a9c7bc1b02f87df2196194d62668f554004e # v4.1.0
Expand Down

0 comments on commit cfdd62f

Please sign in to comment.