Update hugo-version-update.yml

This commit is contained in:
Nuno Coração 2024-03-09 21:39:44 +00:00 committed by GitHub
parent 2134b2fd01
commit 83b0c5aea0
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' if: steps.git-check.outputs.modified == 'true'
run: | run: |
cat release-versions/hugo-latest.txt | \ 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; done | \
release_tag=$(cat release-versions/hugo-latest.txt) | \ release_tag=$(cat release-versions/hugo-latest.txt) | \
echo "release_tag=$release_tag" >> $GITHUB_OUTPUT echo "release_tag=$release_tag" >> $GITHUB_OUTPUT