Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add print debug http when failure #3

Merged
merged 3 commits into from
Jul 15, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 13 additions & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,11 @@ inputs:
content_path:
description: Content Path
required: false
default: '.'
default: '.'
debug:
description: Debug
required: false
default: false

runs:
using: "composite"
Expand Down Expand Up @@ -68,6 +72,7 @@ runs:
env:
STUDIO: ${{ inputs.studio }}
CONTENT_PATH: ${{ inputs.content_path }}
HTTP_ENABLE_FILE_DEBUG: ${{ inputs.debug }}
run: |
cd $CONTENT_PATH
if [ -f "plugin.yaml" ] || [ -f "plugin.yml" ]; then
Expand All @@ -85,4 +90,11 @@ runs:
if: ${{ failure() }}
run: |
cat $HOME/.stk/logs/*
exit 1

- name: Show Http debug Log
shell: bash
if: ${{ failure() }}
run: |
cat $HOME/.stk/debug/http.txt
exit 1