From a26f40c09a201fd0d64ef34f3a51c4c3003b3026 Mon Sep 17 00:00:00 2001 From: monosans Date: Sun, 3 Mar 2024 16:58:33 +0300 Subject: [PATCH] Improve CI autofixes --- .github/workflows/ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 083399b..09bc8ae 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -16,12 +16,12 @@ jobs: - id: run-pre-commit run: pipx run pre-commit run --all-files - id: generate-token - if: ${{ failure() && steps.run-pre-commit.conclusion == 'failure' }} + if: ${{ !cancelled() && steps.run-pre-commit.conclusion == 'failure' }} uses: tibdex/github-app-token@v2 with: app_id: ${{ secrets.APP_ID }} private_key: ${{ secrets.PRIVATE_KEY }} - - if: ${{ failure() && steps.generate-token.conclusion == 'success' }} + - if: ${{ !cancelled() && steps.generate-token.conclusion == 'success' }} uses: peter-evans/create-pull-request@v6 with: token: ${{ steps.generate-token.outputs.token }}