Files
lucidia-main/.github/workflows/failure-issue.yml

27 lines
704 B
YAML

name: CI Failure Tracker
# ✅ VERIFIED: Opens an issue when CORE CI fails on main/master
on:
workflow_run:
workflows: ["CORE CI", ".github/workflows/core-ci.yml"]
types: [completed]
permissions:
issues: write
contents: read
jobs:
report:
if: ${{ github.event.workflow_run.conclusion == 'failure' }}
runs-on: ubuntu-latest
steps:
- uses: actions/github-script@f28e40c7f34bde8b3046d885e986cb6290c5673b # v7.1.0
with:
script: |
await github.rest.issues.create({
...context.repo,
title: "CI failed: " + context.payload.workflow_run.name,
body: context.payload.workflow_run.html_url
})