Skip to content

Commit f756a34

Browse files
committed
Fix hugo version
1 parent 4d38eb6 commit f756a34

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.github/workflows/publish.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,11 @@ jobs:
2222
- name: Setup Hugo Version
2323
id: hugo_version
2424
run: |
25-
HUGO_VERSION=$(cat .tool-versions | grep hugo | cut -d' ' -f2 | cut -d'_' -f2)
26-
echo "HUGO_VERSION=$HUGO_VERSION" >> "$GITHUB_ENV"
25+
echo "HUGO_VERSION=$(cat .tool-versions | grep hugo | cut -d' ' -f2 | cut -d'_' -f2)" >> "$GITHUB_ENV"
26+
27+
- name: Use the value
28+
run: |
29+
printf '%s\n' "$HUGO_VERSION" # This will output 'yellow'
2730
2831
- name: Setup Hugo
2932
uses: peaceiris/actions-hugo@v3

0 commit comments

Comments
 (0)