Skip to content

Commit 880f749

Browse files
authored
1 parent dff4fe2 commit 880f749

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

.github/workflows/pr_deploy.yaml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@ on:
66

77
jobs:
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:
@@ -15,8 +17,10 @@ jobs:
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: |

.github/workflows/pr_test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66

77
jobs:
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 }}

0 commit comments

Comments
 (0)