File tree Expand file tree Collapse file tree 2 files changed +8
-4
lines changed
Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change 66
77jobs :
88 build_and_deploy :
9- if : startsWith(github.head_ref, 'feature') || startsWith(github.head_ref, 'fix')
9+ if : |
10+ ( startsWith(github.head_ref, 'feature') ||
11+ startsWith(github.head_ref, 'fix') )
1012 name : Deploy on PR
1113 runs-on : ubuntu-latest
1214 steps :
1517
1618 - name : check out trigger branch
1719 run : |
18- git fetch origin ${{ github.head_ref }}
19- git checkout ${{ github.head_ref }}
20+ git fetch origin $BRANCH
21+ git checkout $BRANCH
22+ env :
23+ BRANCH : ${{ github.head_ref }}
2024
2125 # - name: check envs
2226 # run: |
Original file line number Diff line number Diff line change 66
77jobs :
88 test_on_pr :
9- name : Test on PR
9+ name : Run tests on PR
1010 runs-on : ubuntu-latest
1111 env :
1212 GOPATH : ${{ github.workspace }}
You can’t perform that action at this time.
0 commit comments