From f2fa2bf079f2275660bdda219bf8c1db419ef4aa Mon Sep 17 00:00:00 2001 From: pyth0n1c <87383215+pyth0n1c@users.noreply.github.com> Date: Tue, 10 Aug 2021 11:56:02 -0700 Subject: [PATCH] Apparently, unless specified otherwise, exit returns most recent return code. Explicitly have it return 0 on success. --- .github/workflows/auto-update.yml | 4 ++-- .github/workflows/detection-testing.yml | 4 ++-- .github/workflows/semgrep-analysis.yml | 4 ++-- .github/workflows/validate-and-build.yml | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/auto-update.yml b/.github/workflows/auto-update.yml index a2aefe82c0..1f782f54f3 100644 --- a/.github/workflows/auto-update.yml +++ b/.github/workflows/auto-update.yml @@ -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 diff --git a/.github/workflows/detection-testing.yml b/.github/workflows/detection-testing.yml index bb26f836bc..8fd4b7a46d 100644 --- a/.github/workflows/detection-testing.yml +++ b/.github/workflows/detection-testing.yml @@ -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: diff --git a/.github/workflows/semgrep-analysis.yml b/.github/workflows/semgrep-analysis.yml index 528ac0cb12..5d503b5b65 100644 --- a/.github/workflows/semgrep-analysis.yml +++ b/.github/workflows/semgrep-analysis.yml @@ -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 diff --git a/.github/workflows/validate-and-build.yml b/.github/workflows/validate-and-build.yml index 22f9021418..c49b90cb0b 100644 --- a/.github/workflows/validate-and-build.yml +++ b/.github/workflows/validate-and-build.yml @@ -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: