mirror of
https://github.com/ralsina/tartrazine.git
synced 2024-11-13 23:12:24 +00:00
add a tag override for testing
This commit is contained in:
parent
202ca6a675
commit
73a29fd324
22
.github/workflows/sync-linguist.yml
vendored
22
.github/workflows/sync-linguist.yml
vendored
@ -1,5 +1,11 @@
|
|||||||
name: Sync Linguist
|
name: Sync Linguist
|
||||||
on: workflow_dispatch
|
on:
|
||||||
|
workflow_dispatch:
|
||||||
|
inputs:
|
||||||
|
linguist_tag:
|
||||||
|
description: 'Linguist tag override'
|
||||||
|
required: False
|
||||||
|
default: ''
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
sync-linguist:
|
sync-linguist:
|
||||||
@ -28,10 +34,16 @@ jobs:
|
|||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
IFS=$'\n\t'
|
IFS=$'\n\t'
|
||||||
cd .linguist
|
cd .linguist
|
||||||
latest=$(git tag --list | \
|
if [[ -n "${{ github.event.inputs.linguist_tag }}" ]]; then
|
||||||
grep -v "-" | \
|
echo "Using tag override '${{ github.event.inputs.linguist_tag }}'"
|
||||||
sort --version-sort --reverse | \
|
latest="${{ github.event.inputs.linguist_tag }}"
|
||||||
head -1)
|
else
|
||||||
|
latest=$(git tag --list | \
|
||||||
|
grep -v "-" | \
|
||||||
|
sort --version-sort --reverse | \
|
||||||
|
head -1)
|
||||||
|
fi
|
||||||
|
|
||||||
if [[ -z $latest ]]; then
|
if [[ -z $latest ]]; then
|
||||||
echo "could not determine latest Linguist version"
|
echo "could not determine latest Linguist version"
|
||||||
exit 1
|
exit 1
|
||||||
|
Loading…
Reference in New Issue
Block a user