name: 24 - Github Context on: [workflow_dispatch, push, pull_request, issues, deployment_status] jobs: github-context: name: job-context 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" # Testing comment on https://stackoverflow.com/questions/67503656/echo-github-action-environment-variables/67504712?noredirect=1#comment134718086_67504712 context-variables: runs-on: ubuntu-latest steps: - run: | echo "GITHUB_REPOSITORY_OWNER: $GITHUB_REPOSITORY_OWNER" echo "GITHUB_REPOSITORY: $GITHUB_REPOSITORY" echo "github.repository: ${{ github.repository }}" echo "github.repository_owner: ${{ github.repository_owner }}" echo "GITHUB.REPOSITORY: $GITHUB.REPOSITORY" echo "GITHUB.REPOSITORY_OWNER: $GITHUB.REPOSITORY_OWNER"