Skip to content

Commit

Permalink
Merge pull request #542 from weecology/prevent-future-pain
Browse files Browse the repository at this point in the history
Warn contributors about PRs from forks in tests [no version bump]
  • Loading branch information
henrykironde authored Jul 20, 2024
2 parents c75d213 + 6d187d4 commit 0180abd
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,11 @@ jobs:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}

steps:
- name: Tests will fail on PRs from forks
if: 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
- uses: actions/checkout@v4
with:
fetch-depth: 3
Expand Down

0 comments on commit 0180abd

Please sign in to comment.