We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 80e4d2c commit 1197fb2Copy full SHA for 1197fb2
.github/workflows/integration_test.yml
@@ -19,14 +19,18 @@ jobs:
19
path: 'home/runner/travisci-tools'
20
ref: 'master'
21
- name: Set SDK branch if PR
22
+ env:
23
+ HEAD_REF: ${{ github.head_ref }}
24
if: ${{ github.event_name == 'pull_request' }}
25
run: |
- echo "SDK_BRANCH=${{ github.head_ref }}" >> $GITHUB_ENV
26
+ echo "SDK_BRANCH=$HEAD_REF" >> $GITHUB_ENV
27
- name: Set SDK branch if not pull request
28
29
+ REF_NAME: ${{ github.ref_name }}
30
if: ${{ github.event_name != 'pull_request' }}
31
- echo "SDK_BRANCH=${{ github.ref_name }}" >> $GITHUB_ENV
- echo "TRAVIS_BRANCH=${{ github.ref_name }}" >> $GITHUB_ENV
32
+ echo "SDK_BRANCH=$REF_NAME" >> $GITHUB_ENV
33
+ echo "TRAVIS_BRANCH=$REF_NAME" >> $GITHUB_ENV
34
- name: Trigger build
35
env:
36
SDK: react
0 commit comments