From 7def8c82ced59cd7acf6acfdccd589cdb1833b9d Mon Sep 17 00:00:00 2001 From: Luke Francl Date: Fri, 8 Oct 2021 12:20:28 -0700 Subject: [PATCH] this shouldn't be required to stop the workflow --- .github/workflows/sync-linguist.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/sync-linguist.yml b/.github/workflows/sync-linguist.yml index 0c86233..a30acd7 100644 --- a/.github/workflows/sync-linguist.yml +++ b/.github/workflows/sync-linguist.yml @@ -11,7 +11,7 @@ jobs: id: branch run: | set -euo pipefail - IFS=$'\n\t' + IFS=$'\n\t' branch_name=feature/sync-linguist-$(date +%s) git checkout -b $branch_name echo "::set-output name=branch_name::$branch_name" @@ -32,6 +32,11 @@ jobs: grep -v "-" | \ sort --version-sort --reverse | \ head -1) + if [[ $? -ne 0 ]]; then + echo "Could not find latest tagged Linguist version" + exit 1 + fi + echo "::set-output name=linguist_version::$latest" git checkout $latest cd ..