Skip to content

Commit 9678bf2

Browse files
authored
fix: run workflows on PR origin (#120)
This allows the testing workflow to run on forked branches in friends' repositories
1 parent 213d5c8 commit 9678bf2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/lint-test-sdk.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ env:
2727
CI: true
2828
SDK_BRANCH: ${{ inputs.sdk_branch || github.head_ref || github.ref_name || 'main' }}
2929
TEST_DATA_BRANCH: ${{ inputs.test_data_branch || 'main' }}
30+
SDK_REPO: ${{ (github.event_name == 'workflow_call' && 'Eppo-exp/sdk-common-jdk') || github.repository }}
3031

3132
jobs:
3233
lint-test-sdk:
@@ -37,7 +38,7 @@ jobs:
3738
steps:
3839
- uses: actions/checkout@v4
3940
with:
40-
repository: Eppo-exp/sdk-common-jdk
41+
repository: ${{ env.SDK_REPO }}
4142
ref: ${{ env.SDK_BRANCH }}
4243
fetch-depth: 0
4344

0 commit comments

Comments
 (0)