Skip to content

Commit

Permalink
Only run pipeline on certain events
Browse files Browse the repository at this point in the history
  • Loading branch information
Luke Rogerson committed Sep 20, 2023
1 parent 5b2bf41 commit ecde775
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ on:
push:
branches:
- '**'
pull_request:
branches:
- 'main'
release:
types: [ published ]

Expand Down Expand Up @@ -40,6 +43,7 @@ jobs:
path: ./dist

release-to-staging:
if: github.event_name == 'pull_request' && github.head_ref == 'main'
needs: build-and-test
runs-on: ubuntu-latest
steps:
Expand Down

0 comments on commit ecde775

Please sign in to comment.