Skip to content

Commit

Permalink
debug: Add debug workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
joeyparrish committed Nov 5, 2024
1 parent a9f7a03 commit e7b7134
Showing 1 changed file with 47 additions and 0 deletions.
47 changes: 47 additions & 0 deletions .github/workflows/debug.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: Workflow Debug

on:
push:
branches:
- main
pull_request:
types: [opened, synchronize, reopened]
pull_request_target:
types: [opened, synchronize, reopened]
workflow_dispatch:
inputs:
ref:
description: "The ref to build and test."
required: True
workflow_call:
inputs:
ref:
description: "The ref to build and test."
required: True
schedule:
# Run every 30 minutes
- cron: '*/30 * * * *'
release:
types: [created]

defaults:
run:
shell: bash

jobs:
debug:
runs-on: ubuntu-latest
steps:
- run: |
echo "github.ref: ${{ github.ref }}"
echo ""
echo "github.event.inputs.ref: ${{ github.event.inputs.ref }}"
echo "inputs.ref: ${{ inputs.ref }}"
echo ""
echo "github.event.pull_request_target.merge_commit_sha: ${{ github.event.pull_request_target.merge_commit_sha }}"
echo "github.event.pull_request.merge_commit_sha: ${{ github.event.pull_request.merge_commit_sha }}"
echo "github.event.push.head: ${{ github.event.push.head }}"
echo ""
cat <<EOF
github.event: ${{ toJSON(github.event) }}"
EOF

0 comments on commit e7b7134

Please sign in to comment.