Log Event Data #2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Log Event Data | |
on: | |
push: | |
branches: | |
- dev | |
pull_request: | |
branches: | |
- dev | |
workflow_dispatch: | |
jobs: | |
log-event: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out the repository | |
uses: actions/checkout@v4 | |
- name: Log event data | |
run: | | |
echo "Event Name: ${{ github.event_name }}" | |
echo "Event Action: ${{ github.event.action }}" | |
echo "Repository: ${{ github.repository }}" | |
echo "Ref: ${{ github.ref }}" | |
echo "SHA: ${{ github.sha }}" | |
echo "Actor: ${{ github.actor }}" | |
echo "Branch: ${{ github.ref_name }}" | |
echo "Head Commit Message: ${{ github.event.head_commit.message }}" | |
echo "Triggered by: ${{ github.event_name }}" | |
echo "Complete Event Payload:" | |
echo '${{ toJson(github.event) }}' |