Skip to content

Commit

Permalink
Preventing test Workflor from running on main
Browse files Browse the repository at this point in the history
  • Loading branch information
CatChen committed Aug 22, 2022
1 parent 204d2d7 commit 4354f91
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ on:
jobs:
test:
name: Test
if: ${{ !startsWith(github.head_ref, 'workflows/tests/') && github.actor != 'dependabot[bot]' }}
if: ${{ !startsWith(github.head_ref, 'workflows/tests/') && github.head_ref != 'refs/heads/main' && github.actor != 'dependabot[bot]' }}
runs-on: ubuntu-latest
permissions: write-all

Expand Down

0 comments on commit 4354f91

Please sign in to comment.