Skip to content

Commit acf5dd4

Browse files
committed
make test workflow work on forks
1 parent a1cfc4c commit acf5dd4

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/run-tests.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,17 +39,17 @@ jobs:
3939
echo "Test Data: sdk-test-data@${TEST_DATA_BRANCH_NAME}"
4040
echo "SDK Branch: php-sdk@${SDK_BRANCH_NAME}"
4141
42-
- uses: actions/checkout@v3
42+
- uses: actions/checkout@v5
4343
with:
44-
repository: Eppo-exp/php-sdk
45-
ref: ${{ env.SDK_BRANCH_NAME}}
44+
repository: ${{ github.event.pull_request.head.repo.full_name || 'Eppo-exp/php-sdk' }}
45+
ref: ${{ env.SDK_BRANCH_NAME }}
4646

4747
- name: Validate composer.json and composer.lock
4848
run: composer validate --strict
4949

5050
- name: Cache Composer packages
5151
id: composer-cache
52-
uses: actions/cache@v3
52+
uses: actions/cache@v4
5353
with:
5454
path: vendor
5555
key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }}

0 commit comments

Comments
 (0)