Skip to content

Commit

Permalink
Fix hugo version
Browse files Browse the repository at this point in the history
  • Loading branch information
ThisIsMissEm committed Jan 24, 2025
1 parent 4d38eb6 commit f756a34
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,11 @@ jobs:
- name: Setup Hugo Version
id: hugo_version
run: |
HUGO_VERSION=$(cat .tool-versions | grep hugo | cut -d' ' -f2 | cut -d'_' -f2)
echo "HUGO_VERSION=$HUGO_VERSION" >> "$GITHUB_ENV"
echo "HUGO_VERSION=$(cat .tool-versions | grep hugo | cut -d' ' -f2 | cut -d'_' -f2)" >> "$GITHUB_ENV"
- name: Use the value
run: |
printf '%s\n' "$HUGO_VERSION" # This will output 'yellow'
- name: Setup Hugo
uses: peaceiris/actions-hugo@v3
Expand Down

0 comments on commit f756a34

Please sign in to comment.