Skip to content

Log Event Data

Log Event Data #2

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) }}'