File tree Expand file tree Collapse file tree 1 file changed +9
-8
lines changed Expand file tree Collapse file tree 1 file changed +9
-8
lines changed Original file line number Diff line number Diff line change @@ -24,18 +24,19 @@ jobs:
24
24
ref : ' master'
25
25
- name : set SDK Branch if PR
26
26
if : ${{ github.event_name == 'pull_request' }}
27
+ env :
28
+ HEAD_REF : ${{ github.head_ref }}
29
+ BASE_REF : ${{ github.base_ref }}
27
30
run : |
28
- echo "SDK_BRANCH=${{ github.head_ref }}" >> $GITHUB_ENV
29
- echo "TRAVIS_BRANCH=${{ github.base_ref }}" >> $GITHUB_ENV
30
- ## Need to remove
31
- echo ${{ github.ref_name }}
31
+ echo "SDK_BRANCH=$HEAD_REF" >> $GITHUB_ENV
32
+ echo "TRAVIS_BRANCH=$BASE_REF" >> $GITHUB_ENV
32
33
- name : set SDK Branch if not pull request
33
34
if : ${{ github.event_name != 'pull_request' }}
35
+ env :
36
+ REF_NAME : ${{ github.ref_name }}
34
37
run : |
35
- echo "SDK_BRANCH=${{ github.ref_name }}" >> $GITHUB_ENV
36
- echo "TRAVIS_BRANCH=${{ github.ref_name }}" >> $GITHUB_ENV
37
- ## Need to remove
38
- echo ${{ github.ref_name }}
38
+ echo "SDK_BRANCH=$REF_NAME" >> $GITHUB_ENV
39
+ echo "TRAVIS_BRANCH=$REF_NAME" >> $GITHUB_ENV
39
40
- name : Trigger build
40
41
env :
41
42
SDK : go
You can’t perform that action at this time.
0 commit comments