File tree Expand file tree Collapse file tree 2 files changed +11
-9
lines changed Expand file tree Collapse file tree 2 files changed +11
-9
lines changed Original file line number Diff line number Diff line change @@ -22,10 +22,11 @@ jobs:
22
22
- name : SKIP IF THE PR ALREADY EXISTS
23
23
id : check-for-branch
24
24
run : |
25
- c=$(git ls-remote --exit-code --heads origin bump-otp-for-oci)
26
- echo "::set-output name=c::$c"
25
+ set +e
26
+ git ls-remote --exit-code --heads origin bump-otp-for-oci
27
+ echo "::set-output name=c::$?"
27
28
- name : DETERMINE LATEST PATCH & SHA
28
- if : steps.check-for-branch.c != 0
29
+ if : steps.check-for-branch.outputs. c != 0
29
30
id : fetch-version
30
31
run : |
31
32
TAG_NAME=$(curl -s GET https://api.github.com/repos/erlang/otp/tags \
37
38
echo "::set-output name=VERSION::${TAG_NAME#OTP-}"
38
39
echo "::set-output name=SHA::${SHA}"
39
40
- name : MODIFY VERSION FILE
40
- if : steps.check-for-branch.c != 0
41
+ if : steps.check-for-branch.outputs. c != 0
41
42
run : |
42
43
echo "Updating packaging/docker-image/${{ matrix.image_tag_suffix }}.yaml with:"
43
44
echo " otp -> ${{ steps.fetch-version.outputs.VERSION }}"
50
51
set -x
51
52
git diff
52
53
- name : CREATE PULL REQUEST
53
- if : steps.check-for-branch.c != 0
54
+ if : steps.check-for-branch.outputs. c != 0
54
55
uses : peter-evans/create-pull-request@v3
55
56
with :
56
57
token : ${{ secrets.REPO_SCOPED_TOKEN }}
Original file line number Diff line number Diff line change @@ -25,10 +25,11 @@ jobs:
25
25
- name : SKIP IF THE PR ALREADY EXISTS
26
26
id : check-for-branch
27
27
run : |
28
- c=$(git ls-remote --exit-code --heads origin bump-rbe-image-${{ matrix.short_version }})
29
- echo "::set-output name=c::$c"
28
+ set +e
29
+ git ls-remote --exit-code --heads origin bump-rbe-image-${{ matrix.short_version }}
30
+ echo "::set-output name=c::$?"
30
31
- name : UPDATE RBE IMAGE SHA
31
- if : steps.check-for-branch.c != 0
32
+ if : steps.check-for-branch.outputs. c != 0
32
33
env :
33
34
IMAGE : pivotalrabbitmq/rabbitmq-server-buildenv
34
35
TAG : linux-erlang-${{ matrix.erlang_version }}
43
44
"dict_set exec_properties container-image:docker://${IMAGE}@${DIGEST}" \
44
45
//:erlang_${{ matrix.short_version }}_platform || test $? -eq 3
45
46
- name : CREATE PULL REQUEST
46
- if : steps.check-for-branch.c != 0
47
+ if : steps.check-for-branch.outputs. c != 0
47
48
uses : peter-evans/create-pull-request@v3
48
49
with :
49
50
token : ${{ secrets.REPO_SCOPED_TOKEN }}
You can’t perform that action at this time.
0 commit comments