feat: consolidate auto-issue into ci.yml with if: failure()
- 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:
@@ -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 }}"
|
||||
|
||||
Reference in New Issue
Block a user