this shouldn't be required to stop the workflow

This commit is contained in:
Luke Francl 2021-10-08 12:20:28 -07:00
parent f0b2a73b5b
commit 7def8c82ce

View File

@ -11,7 +11,7 @@ jobs:
id: branch id: branch
run: | run: |
set -euo pipefail set -euo pipefail
IFS=$'\n\t' IFS=$'\n\t'
branch_name=feature/sync-linguist-$(date +%s) branch_name=feature/sync-linguist-$(date +%s)
git checkout -b $branch_name git checkout -b $branch_name
echo "::set-output name=branch_name::$branch_name" echo "::set-output name=branch_name::$branch_name"
@ -32,6 +32,11 @@ jobs:
grep -v "-" | \ grep -v "-" | \
sort --version-sort --reverse | \ sort --version-sort --reverse | \
head -1) head -1)
if [[ $? -ne 0 ]]; then
echo "Could not find latest tagged Linguist version"
exit 1
fi
echo "::set-output name=linguist_version::$latest" echo "::set-output name=linguist_version::$latest"
git checkout $latest git checkout $latest
cd .. cd ..