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'
|
IFS=$'\n\t'
|
||||||
cd .linguist
|
cd .linguist
|
||||||
latest=$(git tag --list | \
|
latest=$(git tag --list | \
|
||||||
grep -v "-" | \
|
grep -v "-" | \
|
||||||
sort --version-sort --reverse | \
|
sort --version-sort --reverse | \
|
||||||
head -1)
|
head -1)
|
||||||
if [[ $? -ne 0 ]]; then
|
if [[ -n $latest ]]; then
|
||||||
echo "Could not find latest tagged Linguist version"
|
echo "could not determine latest Linguist version"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "::set-output name=linguist_version::$latest"
|
echo "::set-output name=linguist_version::$latest"
|
||||||
git checkout $latest
|
git checkout $latest
|
||||||
cd ..
|
cd ..
|
||||||
|
Loading…
x
Reference in New Issue
Block a user