Skip to content

Commit 18f5d4e

Browse files
committed
Polishing GitHub workflow
1 parent b647312 commit 18f5d4e

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

.github/workflows/build-test.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,11 @@ name: Build & test
33
on:
44
push:
55
branches:
6-
trunk
6+
- trunk
7+
- upgrade-ubuntu-bionic-20200639
78
pull_request:
89
branches:
9-
trunk
10+
- trunk
1011

1112
jobs:
1213
build-and-test:
@@ -29,6 +30,12 @@ jobs:
2930
run: echo "::set-env name=BRANCH::$(echo ${GITHUB_REF##*/})"
3031
- name: Output branch name
3132
run: echo ${BRANCH}
33+
- name: Output GitHub Head ref
34+
if: github.event_name == 'pull_request'
35+
run: echo ${{ github.head_ref }}
36+
- name: Output GitHub ref
37+
if: github.event_name == 'push'
38+
run: echo ${{ github.ref }}
3239
- name: Build Docker images
3340
run: VERSION=${BRANCH} make build
3441
- name: Test Docker images

0 commit comments

Comments
 (0)