8000 Automatically turn on debugging · Issue #264 · actions/github-script · GitHub
[go: up one dir, main page]

Skip to content
Automatically turn on debugging #264
Closed
@TWiStErRob

Description

@TWiStErRob

I'm trying to debug a script: | block, and I have to modify the script with debug: true to be able to do so even though there's UI for it in shape of "[x] Enable debug logging".

Describe the solution you'd like
Make the default value of debug param

github-script/action.yml

Lines 15 to 17 in 7a5c598

debug:
description: Whether to tell the GitHub client to log details of its requests
default: false

equivalent to default: ${{ secrets.ACTIONS_STEP_DEBUG || false }}. Not sure if this would work verbatum, but what would work best if it tries to read the secret, and if that fails or not set, then falls back to the now-default false. I tried this as a parameter to the action, and it works well.

Describe alternatives you've considered
Trying to remember to put debug: ${{ secrets.ACTIONS_STEP_DEBUG || false }} for all of my .yml files.

Additional context
See TWiStErRob/github-actions-test#1 for the workaround.

Normal run without debugging: https://github.com/TWiStErRob/github-actions-test/runs/6740560658
Re-ran with Enable debug logging: https://github.com/TWiStErRob/github-actions-test/runs/6740567848

Note: ignore the fact that there's no output, reported that separately #265

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0