Avoid exitcode triggering job failure

This commit is contained in:
Hamish Coleman 2021-10-31 16:08:12 +00:00
parent e63b0f3c53
commit 1adbdc9a00

View File

@ -508,8 +508,7 @@ jobs:
# We build a workaround
- name: Get Tag Type
run: |
git cat-file tag $GITHUB_REF
if $? -eq 0; then TAGTYPE=tag; else TAGTYPE=commit; fi
if git cat-file tag $GITHUB_REF; then TAGTYPE=tag; else TAGTYPE=commit; fi
echo "::set-output name=TAGTYPE::$TAGTYPE"
echo ================Debug