File tree 1 file changed +12
-4
lines changed
1 file changed +12
-4
lines changed Original file line number Diff line number Diff line change 15
15
16
16
jobs :
17
17
reference-abi :
18
- runs-on : ubuntu-20 .04
18
+ runs-on : ubuntu-22 .04
19
19
steps :
20
20
- name : get parent tag
21
21
run : >
22
22
echo ${{ github.ref }} |
23
23
sed -E 's,refs/heads/stable-([0-9]\.[0-9]*)\.y,PARENT_TAG=\1.0,' >> $GITHUB_ENV
24
+ if : ${{ github.event_name == 'push' }}
25
+ - name : get parent tag
26
+ run : echo PARENT_TAG=${{ github.base_ref }} >> $GITHUB_ENV
27
+ if : ${{ github.event_name == 'pull_request' }}
24
28
- name : assert parent tag
25
29
run : /bin/false
26
30
if : ${{ env.PARENT_TAG == '' }}
@@ -45,20 +49,24 @@ jobs:
45
49
path : abi
46
50
47
51
check-abi :
48
- runs-on : ubuntu-20 .04
52
+ runs-on : ubuntu-22 .04
49
53
needs : reference-abi
50
54
steps :
51
55
- name : get parent tag
52
56
run : >
53
57
echo ${{ github.ref }} |
54
58
sed -E 's,refs/heads/stable-([0-9]\.[0-9]*)\.y,PARENT_TAG=\1.0,' >> $GITHUB_ENV
59
+ if : ${{ github.event_name == 'push' }}
60
+ - name : get parent tag
61
+ run : echo PARENT_TAG=${{ github.base_ref }} >> $GITHUB_ENV
62
+ if : ${{ github.event_name == 'pull_request' }}
55
63
- name : assert parent tag
56
64
run : /bin/false
57
65
if : ${{ env.PARENT_TAG == '' }}
58
- - name : checkout ${{ env.PARENT_TAG }}
66
+ - name : checkout ${{ github.base_ref }}
59
67
uses : actions/checkout@v4
60
68
with :
61
- ref : ${{ env.PARENT_TAG }}
69
+ ref : ${{ github.base_ref }}
62
70
- name : download ABI for ${{ env.PARENT_TAG }}
63
71
id : download_abi
64
72
uses : actions/download-artifact@v4
You can’t perform that action at this time.
0 commit comments