Update hugo-version-update.yml

This commit is contained in:
Nuno Coração 2024-03-09 21:58:46 +00:00 committed by GitHub
parent 0c22317171
commit afdaaaf408
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -33,18 +33,16 @@ 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; done | \
release_tag=$(cat release-versions/hugo-latest.txt) | \
echo "release_tag=$release_tag" >> $GITHUB_OUTPUT
while read version; do sed -i '' -E "s/(max = \")[0-9]+\.[0-9]+\.[0-9]+(\")/\1${version#v}\2/g" config.toml; done
- name: Create Pull Request
if: steps.git-check.outputs.modified == 'true'
uses: peter-evans/create-pull-request@v6
with:
commit-message: Update Hugo supported version to ${{ steps.update-config.outputs.release_tag }}
title: ⚙️ Update Hugo supported version to ${{ steps.update-config.outputs.release_tag }}
commit-message: Update Hugo supported version
title: ⚙️ Update Hugo supported version
body: |
Updates [Hugo][1] support to ${{ steps.update-config.outputs.release_tag }}
Updates [Hugo][1] support
Auto-generated by [create-pull-request][2]