Skip to content

Latest commit

 

History

History
67 lines (58 loc) · 1.37 KB

README.md

File metadata and controls

67 lines (58 loc) · 1.37 KB

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,job,steps,runner,secrets,strategy,matrix,needs,inputs'
    contexts: ''
    
    # 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
      - job
      - steps
      - runner
      - secrets
      - strategy
      - matrix
      - needs
      - inputs
  steps:
  - uses: henrygriffiths/debug_action@v1
    with:
      contexts: ${{ matrix.context }}
      secrets_context: ${{ toJson(secrets) }}
      needs_context: ${{ toJson(needs) }}

License

This project is released under the MIT License