mirror of
https://github.com/splunk/security_content
synced 2026-06-08 17:32:49 +00:00
Apparently, unless specified otherwise, exit returns most recent return code. Explicitly have it return 0 on success.
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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:
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user