Improve CI autofixes

This commit is contained in:
monosans
2024-03-03 16:58:33 +03:00
parent a8e0d13373
commit a26f40c09a
+2 -2
View File
@@ -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 }}