Skip to content

Commit 04ed2db

Browse files
authored
Fixed latest theme fetch with auth request + added echo for better debugging (#47)
1 parent 285440f commit 04ed2db

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/docs-build-push.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,10 @@ jobs:
186186

187187
- name: Get latest hugo theme
188188
if: inputs.doc_type == 'hugo' && inputs.force_hugo_theme_version == ''
189-
run: echo "THEME_VERSION=$(curl -s https://api.github.com/repos/nginxinc/nginx-hugo-theme/releases/latest | jq -r ".tag_name")" >> "$GITHUB_ENV"
189+
run: |
190+
RESPONSE=$(curl -s -H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" https://api.github.com/repos/nginxinc/nginx-hugo-theme/releases/latest)
191+
echo $RESPONSE
192+
echo "THEME_VERSION=$(echo $RESPONSE | jq -r ".tag_name")" >> "$GITHUB_ENV"
190193
191194
### Hugo builds
192195

0 commit comments

Comments
 (0)