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:
2424 ref : ' master'
2525 - name : set SDK Branch if PR
2626 if : ${{ github.event_name == 'pull_request' }}
27+ env :
28+ HEAD_REF : ${{ github.head_ref }}
29+ BASE_REF : ${{ github.base_ref }}
2730 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
3233 - name : set SDK Branch if not pull request
3334 if : ${{ github.event_name != 'pull_request' }}
35+ env :
36+ REF_NAME : ${{ github.ref_name }}
3437 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
3940 - name : Trigger build
4041 env :
4142 SDK : go
You can’t perform that action at this time.
0 commit comments