Skip to content

Commit

Permalink
869 dump gha vars at start of each run for debugging (#899)
Browse files Browse the repository at this point in the history
* print vars workflow

* convert to action

* make workflows use action

* lint

* restructure action
  • Loading branch information
goastler authored Dec 13, 2023
1 parent 84950c7 commit 456dceb
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/actions/print_vars/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: 'Print Vars'
description: 'Prints github varibles'
runs:
using: 'composite'
steps:
- name: github context
shell: bash
run: echo "${{ toJson(github) }}"
- name: env context
shell: bash
run: echo "${{ toJson(env) }}"
- name: vars context
shell: bash
run: echo "${{ toJson(vars) }}"
- name: job context
shell: bash
run: echo "${{ toJson(job) }}"
- name: steps context
shell: bash
run: echo "${{ toJson(steps) }}"
- name: runner context
shell: bash
run: echo "${{ toJson(runner) }}"
- name: secrets context
shell: bash
run: echo "${{ toJson(secrets) }}"
- name: strategy context
shell: bash
run: echo "${{ toJson(strategy) }}"
- name: matrix context
shell: bash
run: echo "${{ toJson(matrix) }}"
- name: needs context
shell: bash
run: echo "${{ toJson(needs) }}"
- name: inputs context
shell: bash
run: echo "${{ toJson(inputs) }}"
3 changes: 3 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,8 @@
},
"[html]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[yaml]": {
"editor.defaultFormatter": "redhat.vscode-yaml"
}
}

0 comments on commit 456dceb

Please sign in to comment.