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
14
.github/workflows/sync-linguist.yml
vendored
14
.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
|
||||
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