Skip to content

Commit 134c632

Browse files
committed
ci(pre-commit): Do not fail if when removing or adding tags
1 parent 87bbda8 commit 134c632

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.github/workflows/pre-commit.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ jobs:
3434
- name: Remove Label
3535
if: contains(github.event.pull_request.labels.*.name, 'Re-trigger Pre-commit Hooks')
3636
run: gh pr edit ${{ github.event.number }} --remove-label 'Re-trigger Pre-commit Hooks'
37+
continue-on-error: true
3738
env:
3839
GH_TOKEN: ${{ github.token }}
3940

@@ -86,13 +87,15 @@ jobs:
8687

8788
- name: Add label if no commits are pending
8889
if: ${{ failure() && steps.pre-commit.outcome == 'failure' && steps.pre-commit.outputs.pending_commit == '0' && github.event_name == 'pull_request' }}
90+
continue-on-error: true
8991
run: |
9092
gh pr edit ${{ github.event.number }} --add-label 'Status: Pre-commit fixes required ⚠️'
9193
env:
9294
GH_TOKEN: ${{ github.token }}
9395

9496
- name: Remove label if everything was fixed
9597
if: ${{ success() && github.event_name == 'pull_request' }}
98+
continue-on-error: true
9699
run: |
97100
gh pr edit ${{ github.event.number }} --remove-label 'Status: Pre-commit fixes required ⚠️'
98101
env:

0 commit comments

Comments
 (0)