Skip to content

Commit

Permalink
Dump environment and GitHub context
Browse files Browse the repository at this point in the history
  • Loading branch information
Henry Mercer committed Mar 24, 2022
1 parent d76b182 commit 4b465cb
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/post-release-mergeback.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,13 @@ jobs:
HEAD_BRANCH: "${{ github.head_ref || github.ref }}"

steps:
- name: Dump GitHub Event context
- name: Dump environment
run: env

- name: Dump GitHub context
env:
GITHUB_EVENT_CONTEXT: "${{ toJson(github.event) }}"
run: echo "$GITHUB_EVENT_CONTEXT"
GITHUB_CONTEXT: '${{ toJson(github) }}'
run: echo "$GITHUB_CONTEXT"

- uses: actions/checkout@v2
- uses: actions/setup-node@v2
Expand Down
8 changes: 8 additions & 0 deletions .github/workflows/update-release-branch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,14 @@ jobs:
runs-on: ubuntu-latest
if: github.repository == 'github/codeql-action'
steps:
- name: Dump environment
run: env

- name: Dump GitHub context
env:
GITHUB_CONTEXT: '${{ toJson(github) }}'
run: echo "$GITHUB_CONTEXT"

- uses: actions/checkout@v2
with:
# Need full history so we calculate diffs
Expand Down

0 comments on commit 4b465cb

Please sign in to comment.