Skip to content

henrygriffiths/debug_action

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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