Skip to content

Commit

Permalink
ci: check branch name before enabling tracking
Browse files Browse the repository at this point in the history
  • Loading branch information
getlarge committed Jan 15, 2024
1 parent 4e5bf00 commit 0484960
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ jobs:
- uses: 8BitJonny/gh-get-current-pr@2.2.0
id: current-pr

- if: steps.current-pr.outputs.number != 'null'
- if: steps.current-pr.outputs.number != 'null' && github.ref_name != 'main'
# This line is needed for nx affected to work when CI is running on a PR
run: git branch --track main origin/main

Expand Down

0 comments on commit 0484960

Please sign in to comment.