2020-12-14 15:54:42 -05:00
2019-02-23 20:02:14 -05:00
2020-11-20 17:56:15 +00:00
2019-02-23 20:31:14 -05:00

Debug GitHub Action

Name: hmarr/debug-action

Print the environment variables and the event payload. Useful for developing or debugging GitHub Actions.

Secrets are automatically filtered in the Actions logs.

Example output (in the Actions logs)

-- Environment variables ----------------------------------------------
SECRET_TOKEN=[FILTERED]
HOSTNAME=cdca0460a2e8
SHLVL=1
HOME=/github/home
GITHUB_EVENT_PATH=/github/workflow/event.json
GITHUB_WORKFLOW=New workflow
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
GITHUB_ACTION=hmarr/debug-action
GITHUB_REPOSITORY=hmarr/some-repository
GITHUB_WORKSPACE=/github/workspace
GITHUB_SHA=2b337df5ad49034668adfa8f7d69120bb844eb96
GITHUB_ACTOR=hmarr
GITHUB_REF=refs/heads/some-branch
PWD=/github/workspace
GITHUB_EVENT_NAME=pull_request
-----------------------------------------------------------------------

-- Event JSON ---------------------------------------------------------
{
  "action": "opened",
  "number": 10,
  "pull_request": {
  ...
  }
}
-----------------------------------------------------------------------
S
Description
No description provided
Readme MIT
51 KiB
Languages
JavaScript 100%