Apparently, unless specified otherwise, exit returns most recent return code. Explicitly have it return 0 on success.

This commit is contained in:
pyth0n1c
2021-08-10 11:56:02 -07:00
parent e8b49a3228
commit f2fa2bf079
4 changed files with 8 additions and 8 deletions
+2 -2
View File
@@ -17,14 +17,14 @@ jobs:
#is in the correct format (like v1.10.20)
if [[ $GITHUB_REF =~ refs/tags/v[0-9]+.[0-9]+.[0-9]+ ]]; then
echo "PASS: Tagged release with good format"
exit
exit 0
else
echo "FAIL: Tagged release with bad format"
exit 1
fi
else
echo "PASS: Not a tagged release"
exit
exit 0
fi
autoupdate:
name: autoupdate
+2 -2
View File
@@ -16,14 +16,14 @@ jobs:
#is in the correct format (like v1.10.20)
if [[ $GITHUB_REF =~ refs/tags/v[0-9]+.[0-9]+.[0-9]+ ]]; then
echo "PASS: Tagged release with good format"
exit
exit 0
else
echo "FAIL: Tagged release with bad format"
exit 1
fi
else
echo "PASS: Not a tagged release"
exit
exit 0
fi
detection-testing:
+2 -2
View File
@@ -22,14 +22,14 @@ jobs:
#is in the correct format (like v1.10.20)
if [[ $GITHUB_REF =~ refs/tags/v[0-9]+.[0-9]+.[0-9]+ ]]; then
echo "PASS: Tagged release with good format"
exit
exit 0
else
echo "FAIL: Tagged release with bad format"
exit 1
fi
else
echo "PASS: Not a tagged release"
exit
exit 0
fi
semgrep:
name: Scan
+2 -2
View File
@@ -29,14 +29,14 @@ jobs:
#is in the correct format (like v1.10.20)
if [[ $GITHUB_REF =~ refs/tags/v[0-9]+.[0-9]+.[0-9]+ ]]; then
echo "PASS: Tagged release with good format"
exit
exit 0
else
echo "FAIL: Tagged release with bad format"
exit 1
fi
else
echo "PASS: Not a tagged release"
exit
exit 0
fi
validate-content: