Skip to content

Commit

Permalink
Expand debug workflow (#4913)
Browse files Browse the repository at this point in the history
Also fixes the bug where single quotes would break the workflow.

b/395119204
  • Loading branch information
oxve authored Feb 18, 2025
1 parent 6eec31d commit 56c26a3
Showing 1 changed file with 26 additions and 3 deletions.
29 changes: 26 additions & 3 deletions .github/workflows/workflow_debug.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,32 @@ permissions: {}
jobs:
debug:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Print github context
- name: Dump GitHub context
env:
GITHUB_CONTEXT: ${{ toJson(github) }}
run: echo "${GITHUB_CONTEXT}"
shell: bash
- name: Dump job context
env:
JOB_CONTEXT: ${{ toJson(job) }}
run: echo "${JOB_CONTEXT}"
shell: bash
- name: Dump steps context
env:
STEPS_CONTEXT: ${{ toJson(steps) }}
run: echo "${STEPS_CONTEXT}"
shell: bash
- name: Dump runner context
env:
RUNNER_CONTEXT: ${{ toJson(runner) }}
run: echo "${RUNNER_CONTEXT}"
shell: bash
- name: Default environment variables
run: |
echo '${{ toJSON(github) }}' | jq '.'
echo "The job_id is: ${GITHUB_JOB}"
echo "The id of this action is: ${GITHUB_ACTION}"
echo "The run id is: ${GITHUB_RUN_ID}"
echo "The GitHub Actor's username is: ${GITHUB_ACTOR}"
echo "GitHub SHA: ${GITHUB_SHA}"
shell: bash

0 comments on commit 56c26a3

Please sign in to comment.