Skip to content

Commit

Permalink
Merge pull request #722 from yalesites-org/actions-run-on-forked-repos
Browse files Browse the repository at this point in the history
fix: allow actions/checkout to run on forked repos
  • Loading branch information
vinmassaro authored Aug 13, 2024
2 parents dcbab70 + 7830dcf commit 06a25bf
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/build_deploy_and_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ jobs:
uses: actions/checkout@v4
with:
ref: ${{ github.head_ref || github.ref_name }}
repository: ${{ github.event.pull_request.head.repo.full_name || github.repository }}

- name: Set bash_env env var
run: echo BASH_ENV=${RUNNER_TEMP}/bash_env.txt >> $GITHUB_ENV
Expand Down Expand Up @@ -91,6 +92,7 @@ jobs:
uses: actions/checkout@v4
with:
ref: ${{ github.head_ref || github.ref_name }}
repository: ${{ github.event.pull_request.head.repo.full_name || github.repository }}

- name: Cache composer cache
uses: actions/cache@v4
Expand Down Expand Up @@ -137,6 +139,7 @@ jobs:
uses: actions/checkout@v4
with:
ref: ${{ github.head_ref || github.ref_name }}
repository: ${{ github.event.pull_request.head.repo.full_name || github.repository }}
fetch-depth: 0

# Workaround for https://github.com/actions/runner/issues/2033
Expand Down

0 comments on commit 06a25bf

Please sign in to comment.