mirror of
https://github.com/ralsina/tartrazine.git
synced 2024-11-12 22:42:23 +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
|
||||
on: workflow_dispatch
|
||||
on:
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
linguist_tag:
|
||||
description: 'Linguist tag override'
|
||||
required: False
|
||||
default: ''
|
||||
|
||||
jobs:
|
||||
sync-linguist:
|
||||
@ -28,10 +34,16 @@ jobs:
|
||||
set -euo pipefail
|
||||
IFS=$'\n\t'
|
||||
cd .linguist
|
||||
latest=$(git tag --list | \
|
||||
grep -v "-" | \
|
||||
sort --version-sort --reverse | \
|
||||
head -1)
|
||||
if [[ -n "${{ github.event.inputs.linguist_tag }}" ]]; then
|
||||
echo "Using tag override '${{ github.event.inputs.linguist_tag }}'"
|
||||
latest="${{ github.event.inputs.linguist_tag }}"
|
||||
else
|
||||
latest=$(git tag --list | \
|
||||
grep -v "-" | \
|
||||
sort --version-sort --reverse | \
|
||||
head -1)
|
||||
fi
|
||||
|
||||
if [[ -z $latest ]]; then
|
||||
echo "could not determine latest Linguist version"
|
||||
exit 1
|
||||
|
Loading…
Reference in New Issue
Block a user