Skip to content

debug: Add debug workflow #3

debug: Add debug workflow

debug: Add debug workflow #3

Workflow file for this run

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

Check failure on line 37 in .github/workflows/debug.yaml

View workflow run for this annotation

GitHub Actions / .github/workflows/debug.yaml

Invalid workflow file

You have an error in your yaml syntax on line 37
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