Skip to content

Commit b00dd2d

Browse files
committed
extract var
1 parent d2f80cf commit b00dd2d

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

.github/workflows/test-sdks.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
name: Test SDKs Locally
22

3+
env:
4+
TEST_DATA_BRANCH_NAME: ${{ github.head_ref || github.ref_name }}
5+
36
on:
47
pull_request:
58
branches: [ "*" ]
@@ -82,7 +85,7 @@ jobs:
8285
test-node-server-sdk:
8386
uses: Eppo-exp/node-server-sdk/.github/workflows/lint-test-sdk.yml@tp/workflows/remote
8487
with:
85-
test_data_branch: ${{ github.head_ref || github.ref_name }}
88+
test_data_branch: ${{ env.TEST_DATA_BRANCH_NAME }}
8689
sdk_branch: main
8790

8891
test-node-client-sdk:
@@ -148,7 +151,7 @@ jobs:
148151
test-php-sdk:
149152
uses: Eppo-exp/php-sdk/.github/workflows/run-tests.yml@tp/workflows/remote
150153
with:
151-
test_data_branch: ${{ github.head_ref || github.ref_name }}
154+
test_data_branch: ${{ env.TEST_DATA_BRANCH_NAME }}
152155
sdk_branch: main
153156

154157
test-ruby-sdk:
@@ -203,9 +206,9 @@ jobs:
203206
uses: 'google-github-actions/setup-gcloud@v0'
204207
- name: Run tests
205208
run: make test
206-
209+
207210
test-dotnet-sdk:
208211
uses: Eppo-exp/dot-net-server-sdk/.github/workflows/run-tests.yml@tp/workflows/remote
209212
with:
210-
test_data_branch: ${{ github.head_ref || github.ref_name }}
213+
test_data_branch: ${{ env.TEST_DATA_BRANCH_NAME }}
211214
sdk_branch: main

0 commit comments

Comments
 (0)