File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -23,14 +23,18 @@ jobs:
23
23
path : ' home/runner/travisci-tools'
24
24
ref : ' master'
25
25
- name : set SDK Branch if PR
26
+ env :
27
+ HEAD_REF : ${{ github.head_ref }}
26
28
if : ${{ github.event_name == 'pull_request' }}
27
29
run : |
28
- echo "SDK_BRANCH=${{ github.head_ref }} " >> $GITHUB_ENV
30
+ echo "SDK_BRANCH=$HEAD_REF " >> $GITHUB_ENV
29
31
- name : set SDK Branch if not pull request
32
+ env :
33
+ REF_NAME : ${{ github.ref_name }}
30
34
if : ${{ github.event_name != 'pull_request' }}
31
35
run : |
32
- echo "SDK_BRANCH=${{ github.ref_name } }" >> $GITHUB_ENV
33
- echo "TRAVIS_BRANCH=${{ github.ref_name } }" >> $GITHUB_ENV
36
+ echo "SDK_BRANCH=${REF_NAME }" >> $GITHUB_ENV
37
+ echo "TRAVIS_BRANCH=${REF_NAME }" >> $GITHUB_ENV
34
38
- name : Trigger build
35
39
env :
36
40
SDK : python
You can’t perform that action at this time.
0 commit comments