• Stars
    star
    105
  • Rank 328,196 (Top 7 %)
  • Language
    JavaScript
  • License
    MIT License
  • Created almost 6 years ago
  • Updated about 2 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

🛠 Show environment variables and event JSON in the Action logs

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.

Important: use v2.0.0 or later, as v1 was designed for the initial GitHub Actions beta, and may no longer work as expected.

Usage instructions

Add a step with - uses: hmarr/debug-action@v2 to a workflow file. Here's an example of a complete workflow file:

name: Debug
on: pull_request_target

jobs:
  build:
    runs-on: ubuntu-latest
    steps:
    - uses: hmarr/debug-action@v2

Example output (in the Actions logs)

▶ Environment variables
  ACTIONS_RUNTIME_TOKEN=***
  CI=true
  GITHUB_ACTION=hmarrdebug-action
  GITHUB_ACTIONS=true
  GITHUB_ACTION_REF=v2.0.0
  GITHUB_ACTION_REPOSITORY=hmarr/debug-action
  GITHUB_ACTOR=hmarr
  GITHUB_API_URL=https://api.github.com
  GITHUB_BASE_REF=main
  GITHUB_EVENT_NAME=pull_request_target
  GITHUB_EVENT_PATH=/home/runner/work/_temp/_github_workflow/event.json
  GITHUB_HEAD_REF=patch-1
  GITHUB_JOB=build
  GITHUB_REF=refs/heads/main
  GITHUB_REPOSITORY=hmarr/demo
  GITHUB_REPOSITORY_OWNER=hmarr
  GITHUB_RUN_ID=658297586
  GITHUB_RUN_NUMBER=15
  GITHUB_SERVER_URL=https://github.com
  GITHUB_SHA=a4171998f9bf51fc5b9d0283b7d5243ac28954d1
  GITHUB_WORKFLOW=approve
  GITHUB_WORKSPACE=/home/runner/work/demo/demo
  HOME=/home/runner
  INPUT_GITHUB-TOKEN=***
  INVOCATION_ID=44ad8f42f5244809971260b35b889a08
  LEIN_HOME=/usr/local/lib/lein
  LEIN_JAR=/usr/local/lib/lein/self-installs/leiningen-2.9.5-standalone.jar
  PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
  RUNNER_OS=Linux
  RUNNER_TOOL_CACHE=/opt/hostedtoolcache
  RUNNER_USER=runner
  RUNNER_WORKSPACE=/home/runner/work/demo
  USER=runner

▶ Event JSON
  {
    "action": "opened",
    "number": 20,
    "pull_request": {
      ...
    }
  }

That example is truncated a bit, but you get the idea.

Development and release process

Each major version corresponds to a branch (e.g. v1, v2). The latest major version (v2 at the time of writing) is the repository's default branch. Releases are tagged with semver-style version numbers (e.g. v1.2.3).

More Repositories

1

vitals

📊 A tiny macOS process monitor
Swift
414
star
2

auto-approve-action

👍 GitHub Action for automatically approving GitHub pull requests
TypeScript
337
star
3

codecube

Docker-powered runnable code snippets
Go
313
star
4

django-mumblr

Mumblr is a basic Django tumblelog application that uses MongoDB.
Python
255
star
5

codeowners

🔒 Command line tool and Go library for CODEOWNERS files
Go
105
star
6

django-debug-toolbar-mongo

MongoDB panel for the Django Debug Toolbar
Python
89
star
7

chromesheep

FireSheep for Chrome
CoffeeScript
63
star
8

mongosearch

A proof-of-concept full-text search engine using MongoDB
Python
59
star
9

pick-dom-element

🖱 A JavaScript library for interactively picking DOM elements
TypeScript
29
star
10

chrome-cookie-switcher

Switch between website accounts easily in Chrome
JavaScript
17
star
11

dotfiles

💻 @hmarr's dotfiles - mostly vim and zsh configuration
Shell
17
star
12

grephub

🔍 Search GitHub repositories with regexes
JavaScript
12
star
13

docker-postgresql

Shell
9
star
14

chrome-detect-font

🖋 Easily see which fonts are in use
TypeScript
8
star
15

ircviewer

A web-based IRC viewer, packed with comety goodness
Python
6
star
16

mortgage-calculator-react

A toy built to try out React
JavaScript
6
star
17

vscode-cel

🎨 VS Code syntax highlighting for CEL
6
star
18

debug-tools

🔧 Docker image with useful debugging tools
Dockerfile
5
star
19

pkgextract

Extract a set of Go packages that depend on one another
Go
5
star
20

alfred-workflow-translate

🎩 Quick access to Google Translate via Alfred
JavaScript
5
star
21

barclays_bikes

A Ruby library for retrieving Barclays Bike availability
Ruby
4
star
22

vim-gemfile

A faster way of adding gems to your Gemfiles
Vim Script
4
star
23

skeema

A Scheme-like language interpreter in C
C
3
star
24

canvaschart

Simple canvas-based javascript charting library
JavaScript
3
star
25

mines

💣 A substandard implementation of the best game ever
TypeScript
3
star
26

xlsx-to-csv

💾 Convert XLSX files to CSVs
Go
3
star
27

schemacompare

Simple database schema comparison tool
Python
3
star
28

monkey_hunter

Find out what a Ruby library monkey patches
Ruby
3
star
29

gitbook-plugin-numbered-headings

Numbered headings for GitBook PDFs
CSS
2
star
30

tree-sitter-sqlite

🌳 A work-in-progress SQLite grammar for tree-sitter
JavaScript
2
star
31

dotjs

JavaScript
2
star
32

dependawhat

🤖 See what Dependabot's up to
TypeScript
2
star
33

barista

☕️ Keeps your Mac awake while it's on the clock
Go
2
star
34

hack-stack

💾 Software toolchain for the nand2tetris Hack computer
Rust
2
star
35

codecube-ruby

Ruby API client library for codecube.io
Ruby
2
star
36

advisories-analysis

Analysing the GitHub Advisory Database with sqlite and pandas
Jupyter Notebook
2
star
37

docker-pandoc-latex

2
star
38

auto-approve-test

1
star
39

ch

Like chruby, but supports multiple languages
Shell
1
star
40

codeowners-rs

🔒 A fast Rust library and CLI for GitHub's CODEOWNERS files
Rust
1
star
41

serve

🗂 Serve files from the current directory over HTTP
Go
1
star
42

gemfile-lock-tmlanguage

🎨 A tmLanguage grammar for Bundler's Gemfile.lock files
1
star
43

homebrew-tap

🍺 Homebrew tap for @hmarr's home brewed software
Ruby
1
star
44

yarn-lock-inconsistency

Shell
1
star