Skip to content

Commit

Permalink
Update hugo-version-update.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
nunocoracao authored Mar 9, 2024
1 parent 0c22317 commit afdaaaf
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions .github/workflows/hugo-version-update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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]

Expand Down

0 comments on commit afdaaaf

Please sign in to comment.