From 29289bb8d333ff16fba489518bb0ba23fe0ac1c3 Mon Sep 17 00:00:00 2001 From: Joey Parrish Date: Tue, 5 Nov 2024 10:06:20 -0800 Subject: [PATCH] debug: Add debug workflow --- .github/workflows/debug.yaml | 45 ++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 .github/workflows/debug.yaml diff --git a/.github/workflows/debug.yaml b/.github/workflows/debug.yaml new file mode 100644 index 0000000..1bd495b --- /dev/null +++ b/.github/workflows/debug.yaml @@ -0,0 +1,45 @@ +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: ${{ toJSON(github.event) }}' + 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 }}'