mirror of
https://github.com/ralsina/tartrazine.git
synced 2025-05-24 08:18:52 -03:00
remove extra whitespace, check $latest
This commit is contained in:
parent
7def8c82ce
commit
c6f7913c28
7
.github/workflows/sync-linguist.yml
vendored
7
.github/workflows/sync-linguist.yml
vendored
@ -29,14 +29,13 @@ jobs:
|
||||
IFS=$'\n\t'
|
||||
cd .linguist
|
||||
latest=$(git tag --list | \
|
||||
grep -v "-" | \
|
||||
grep -v "-" | \
|
||||
sort --version-sort --reverse | \
|
||||
head -1)
|
||||
if [[ $? -ne 0 ]]; then
|
||||
echo "Could not find latest tagged Linguist version"
|
||||
if [[ -n $latest ]]; then
|
||||
echo "could not determine latest Linguist version"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo "::set-output name=linguist_version::$latest"
|
||||
git checkout $latest
|
||||
cd ..
|
||||
|
Loading…
x
Reference in New Issue
Block a user