From 1649993c4bc5553b4fdb07c93149cacc384c46c1 Mon Sep 17 00:00:00 2001 From: Peter Zhang <18501667167@qq.com> Date: Fri, 29 May 2026 20:38:58 +0800 Subject: [PATCH] fix: use step-level if:failure() for auto-issue --- .gitea/workflows/ci.yml | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index cca66d3..0b86860 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -18,15 +18,8 @@ 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 + - name: Create issue on failure + if: failure() run: | python scripts/create_failure_issue.py \ --sha "${{ github.sha }}" \