Skip to content

Commit

Permalink
Merge pull request #544 from weecology/henrykironde-test_ci_pr_on_rep…
Browse files Browse the repository at this point in the history
…o_or_main

Additionally run tests on main after merging PR [no version bump]
  • Loading branch information
ethanwhite authored Jul 21, 2024
2 parents 0180abd + 0dbf87f commit 42eb6e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:

steps:
- name: Tests will fail on PRs from forks
if: github.event.pull_request.head.repo.full_name != github.repository
if: github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name != github.repository
run: |
echo Tests require pull requests be submitted from branches in the main repository
exit 1
Expand Down

0 comments on commit 42eb6e9

Please sign in to comment.