Skip to content

Commit

Permalink
github context
Browse files Browse the repository at this point in the history
  • Loading branch information
Guang Qiu committed Dec 26, 2023
1 parent f53c875 commit 43225e7
Showing 1 changed file with 29 additions and 1 deletion.
30 changes: 29 additions & 1 deletion .github/workflows/first-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,4 +45,32 @@ jobs:
- name: Build project
run: npm run build
- name: Deploy
run: echo "Deloy to my website now!"
run: echo "Deloy to my website now!"
output-job:
needs: [test-job, deploy-job]
runs-on: ubuntu-latest
steps:
- name: Dump GitHub context
env:
GITHUB_CONTEXT: ${{ toJson(github) }}
run: echo "$GITHUB_CONTEXT"
- name: Dump job context
env:
JOB_CONTEXT: ${{ toJson(job) }}
run: echo "$JOB_CONTEXT"
- name: Dump steps context
env:
STEPS_CONTEXT: ${{ toJson(steps) }}
run: echo "$STEPS_CONTEXT"
- name: Dump runner context
env:
RUNNER_CONTEXT: ${{ toJson(runner) }}
run: echo "$RUNNER_CONTEXT"
- name: Dump strategy context
env:
STRATEGY_CONTEXT: ${{ toJson(strategy) }}
run: echo "$STRATEGY_CONTEXT"
- name: Dump matrix context
env:
MATRIX_CONTEXT: ${{ toJson(matrix) }}
run: echo "$MATRIX_CONTEXT"

0 comments on commit 43225e7

Please sign in to comment.