Skip to content

Commit c521254

Browse files
etchalonclaude
andcommitted
debug: Echo build environment variables
Show what environment variables are set during build step to help troubleshoot vars not being picked up from wrangler config. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 4ae30a5 commit c521254

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

action.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,15 @@ runs:
185185
' >> /tmp/build-env.sh
186186
fi
187187
188+
# Debug: show what will be exported
189+
echo "::group::Build environment variables"
190+
if [ -f /tmp/build-env.sh ]; then
191+
cat /tmp/build-env.sh
192+
else
193+
echo "No build environment variables set"
194+
fi
195+
echo "::endgroup::"
196+
188197
- name: Build Worker
189198
if: ${{ inputs.mode == 'full' || inputs.mode == 'build' }}
190199
shell: bash
@@ -194,6 +203,12 @@ runs:
194203
if [ -f /tmp/build-env.sh ]; then
195204
source /tmp/build-env.sh
196205
fi
206+
207+
# Debug: show NUXT_* variables that will be available during build
208+
echo "::group::NUXT environment variables for build"
209+
env | grep -E "^NUXT_" | sort || echo "No NUXT_* variables set"
210+
echo "::endgroup::"
211+
197212
${{ inputs.build-command }}
198213
199214
- name: Set deployment variables

0 commit comments

Comments
 (0)