feat: consolidate auto-issue into ci.yml with if: failure()
CI / test (push) Failing after 20s
CI / create-issue-on-failure (push) Has been skipped

- Replace workflow_run with same-workflow conditional job
- Add create_failure_issue.py script for Gitea API integration
- More reliable than cross-workflow triggers

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
2026-05-29 20:35:28 +08:00
parent d68c45a762
commit e76f7c365b
2 changed files with 76 additions and 0 deletions
+17
View File
@@ -17,3 +17,20 @@ jobs:
- name: Run tests
run: python -m pytest tests/ -v
create-issue-on-failure:
runs-on: shell
needs: test
if: failure()
steps:
- uses: actions/checkout@v4
- name: Create failure issue
shell: bash
run: |
python scripts/create_failure_issue.py \
--sha "${{ github.sha }}" \
--branch "${{ github.ref_name }}" \
--run "${{ github.run_number }}" \
--message "${{ github.event.head_commit.message }}" \
--api-token "${{ secrets.GITEA_TOKEN }}"