File tree Expand file tree Collapse file tree 2 files changed +11
-10
lines changed Expand file tree Collapse file tree 2 files changed +11
-10
lines changed Original file line number Diff line number Diff line change 4
4
push :
5
5
branches :
6
6
- trunk
7
- - upgrade-ubuntu-bionic-20200639
8
7
pull_request :
9
8
branches :
10
9
- trunk
@@ -26,16 +25,18 @@ jobs:
26
25
uses : actions/setup-python@v2
27
26
with :
28
27
python-version : 3.8
29
- - name : Extract branch Name
30
- run : echo "::set-env name=BRANCH::$(echo ${GITHUB_REF##*/})"
28
+ - name : Get branch name (only for push to branch)
29
+ if : github.event_name == 'push'
30
+ run : echo "::set-env name=BRANCH::$(echo ${PUSH_BRANCH##*/})"
31
+ env :
32
+ PUSH_BRANCH : ${{ github.ref }}
33
+ - name : Get target branch name (only for PRs)
34
+ if : github.event_name == 'pull_request'
35
+ run : echo "::set-env name=BRANCH::$(echo ${TARGET_BRANCH##*/})"
36
+ env :
37
+ TARGET_BRANCH : ${{ github.head_ref }}
31
38
- name : Output branch name
32
39
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 }}
39
40
- name : Build Docker images
40
41
run : VERSION=${BRANCH} make build
41
42
- name : Test Docker images
Original file line number Diff line number Diff line change 1
- FROM ubuntu:bionic-20191029
1
+ FROM ubuntu:bionic-20200630
2
2
LABEL authors=
"Selenium <[email protected] >"
3
3
4
4
# ================================================
You can’t perform that action at this time.
0 commit comments