Skip to content

Debug Action Contexts

Actions
Dump Action Contexts
v1.2.0
Latest
Star (2)

Debug Action

This action prints actions contexts for debugging

Usage

- uses: henrygriffiths/debug_action@v1
  with:
    # Optional
    # Specify which contexts to print
    # Default: 'github,env,vars,job,steps,runner,secrets,strategy,matrix,needs,inputs'
    contexts: ''
    
    # Optional
    # Provide vars context to action, as vars context is not available in composite workflows
    # Default: null
    vars_context: ${{ toJson(vars) }}
    
    # Optional
    # Provide secrets context to action, as secrets context is not available in composite workflows
    # Default: null
    secrets_context: ${{ toJson(secrets) }}
    
    # Optional
    # Provide needs context to action, as needs context is not available in composite workflows
    # Default: null
    needs_context: ${{ toJson(needs) }}

Examples

Example for single context

- uses: henrygriffiths/debug_action@v1
  with:
    contexts: 'env'

Example for multiple contexts

- uses: henrygriffiths/debug_action@v1
  with:
    contexts: 'env,runner'

Example using matrix

job:
  runs-on: ubuntu-latest
  strategy:
    matrix:
      context:
      - github
      - env
      - vars
      - job
      - steps
      - runner
      - secrets
      - strategy
      - matrix
      - needs
      - inputs
  steps:
  - uses: henrygriffiths/debug_action@v1
    with:
      contexts: ${{ matrix.context }}
      vars_context: ${{ toJson(vars) }}
      secrets_context: ${{ toJson(secrets) }}
      needs_context: ${{ toJson(needs) }}

License

This project is released under the MIT License

Debug Action Contexts is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.

About

Dump Action Contexts
v1.2.0
Latest

Debug Action Contexts is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.