Skip to content

Commit

Permalink
check PR head repo
Browse files Browse the repository at this point in the history
  • Loading branch information
barrettj12 committed Oct 18, 2023
1 parent f4f1c97 commit 57d4f16
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,6 @@ jobs:
runs-on: ubuntu-latest
steps:
- run: |
echo ${{ github.head_ref }}
if [[ "${{ github.event.pull_request.head.repo.full_name }}" != "juju/juju-controller" ]]; then
echo "::error::CI is unable to run on a PR opened from a fork. Please push your branch to the main repo and reopen this PR."
fi

0 comments on commit 57d4f16

Please sign in to comment.