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 @@ -19,14 +19,18 @@ jobs:
19
19
path : ' home/runner/travisci-tools'
20
20
ref : ' master'
21
21
- name : set SDK Branch if PR
22
+ env :
23
+ HEAD_REF : ${{ github.head_ref }}
22
24
if : ${{ github.event_name == 'pull_request' }}
23
25
run : |
24
- echo "SDK_BRANCH=${{ github.head_ref }} " >> $GITHUB_ENV
26
+ echo "SDK_BRANCH=$HEAD_REF " >> $GITHUB_ENV
25
27
- name : set SDK Branch if not pull request
28
+ env :
29
+ REF_NAME : ${{github.ref_name}}
26
30
if : ${{ github.event_name != 'pull_request' }}
27
31
run : |
28
- echo "SDK_BRANCH=${{ github.ref_name }} " >> $GITHUB_ENV
29
- echo "TRAVIS_BRANCH=${{ github.ref_name } }" >> $GITHUB_ENV
32
+ echo "SDK_BRANCH=$REF_NAME " >> $GITHUB_ENV
33
+ echo "TRAVIS_BRANCH=$REF_NAME }" >> $GITHUB_ENV
30
34
- name : Trigger build
31
35
env :
32
36
SDK : php
You can’t perform that action at this time.
0 commit comments