Skip to content

Debug

Debug #976

Workflow file for this run

name: "CI"
on:
push
concurrency:
# See https://github.com/TWiStErRob/github-workflows/blob/main/snippets/cancel-pr-ci-on-push.yml
group: ${{ github.ref == 'refs/heads/main' && format('ci-main-{0}', github.sha) || format('ci-{0}', github.ref) }}
cancel-in-progress: true
jobs:
validate:
name: "🦺 Validation"
uses: TWiStErRob/github-workflows/.github/workflows/validate.yml@v1
build:
name: "🔨 Build & Verify"
uses: ./.github/workflows/CI-build.yml
needs:
- validate
pull_request:
name: "Find PR"
uses: ./.github/workflows/CI-pr.yml
# Don't execute on main, it'll never be PR'd.
if: github.ref != 'refs/heads/main' && (success() || failure())
print_pr:
name: "Debug"
runs-on: ubuntu-latest
needs: pull_request
steps:
- run: |
echo "$OUT1"
echo "$OUT2"
echo "$OUT3"
echo "$OUT4"
env:
OUT1: ${{ toJSON(needs.pull_request.outputs.found) }}
OUT2: ${{ toJSON(needs.pull_request.outputs) }}
OUT3: ${{ toJSON(needs.pull_request) }}
OUT4: ${{ toJSON(needs) }}
screenshot:
name: "📸 Screenshot Tests"
uses: ./.github/workflows/CI-screenshot.yml
needs:
- validate
- pull_request
# Don't execute on main, as it'll just verify against itself.
if: github.ref != 'refs/heads/main' && needs.pull_request.outputs.found == 'true'