mirror of
https://github.com/blackboxprogramming/lucidia.git
synced 2026-03-20 03:51:16 -05:00
Co-authored-by: blackboxprogramming <118287761+blackboxprogramming@users.noreply.github.com>
27 lines
704 B
YAML
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
|
|
})
|