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:
1919 path : ' home/runner/travisci-tools'
2020 ref : ' master'
2121 - name : Set SDK branch if PR
22+ env :
23+ HEAD_REF : ${{ github.head_ref }}
2224 if : ${{ github.event_name == 'pull_request' }}
2325 run : |
24- echo "SDK_BRANCH=${{ github.head_ref }} " >> $GITHUB_ENV
26+ echo "SDK_BRANCH=$HEAD_REF " >> $GITHUB_ENV
2527 - name : Set SDK branch if not pull request
28+ env :
29+ REF_NAME : ${{ github.ref_name }}
2630 if : ${{ github.event_name != 'pull_request' }}
2731 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
3034 - name : Trigger build
3135 env :
3236 SDK : react
You can’t perform that action at this time.
0 commit comments