Skip to content

Visualising Contexts Workflow #8

Visualising Contexts Workflow

Visualising Contexts Workflow #8

Workflow file for this run

name: Visualising Contexts Workflow
on:
workflow_dispatch:
env:
TEST_ENV_W: "just a test in workflow"
jobs:
show-contexts:
runs-on: ubuntu-latest
env:
TEST_ENV_J: "just a test in job"
steps:
- id: showing-workflow-context
name: Showing Workflow Context
env:
GITHUB_CONTEXT_JSON: ${{ toJson(github) }}
run: |
echo "$GITHUB_CONTEXT_JSON"
echo "Run Attempts via context: ${{ github.run_attempt }}"
echo "Run Attempts via env: $RUN_ATTEMPT"
# - id: showing-job-context
# name: Showing Job Context
# run: |
# echo ${{ job }}
# echo $JOB_CONTEXT
# - id: showing-steps-context
# name: Showing Steps Context
# run: |
# echo ${{ steps }}
# - id: showing-runner-context
# name: Showing Runner Context
# run: |
# echo ${{ runner }}
# - id: showing-env-context
# name: Showing Env Context
# run: |
# echo ${{ env }}
# - id: showing-vars-context
# name: Showing Vars Context
# run: |
# echo ${{ vars }}
# - id: showing-secrets-context
# name: Showing Secrets Context
# run: |
# echo ${{ secrets }}