Update hugo-version-update.yml

This commit is contained in:
Nuno Coração 2024-03-09 21:37:03 +00:00 committed by GitHub
parent fbe67c9978
commit 2134b2fd01
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -32,7 +32,7 @@ jobs:
if: steps.git-check.outputs.modified == 'true'
run: |
cat release-versions/hugo-latest.txt | \
while read version; do sed -i '' -E "s/(max = \")[0-9]+\.[0-9]+\.[0-9]+(\")/\1${version#v}\2/g" config.toml |
while read version; do sed -i '' -E "s/(max = \")[0-9]+\.[0-9]+\.[0-9]+(\")/\1${version#v}\2/g" config.toml | \
release_tag=$(cat release-versions/hugo-latest.txt) | \
echo "release_tag=$release_tag" >> $GITHUB_OUTPUT