Skip to content

Commit

Permalink
chore: 🤖 Fix PreCommitUpdate workflow
Browse files Browse the repository at this point in the history
The command pre-commit autoupdate returns 1 whenever there is a change.
We are going to ignore that.
  • Loading branch information
abelsiqueira committed May 30, 2024
1 parent 6a2dc3a commit 1da0ac1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/PreCommitUpdate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@ jobs:
- name: Install pre-commit
run: pip install pre-commit
- name: Run pre-commit's autoupdate
run: pre-commit autoupdate
run: |
# autoupdate returns 1 if any changes were made
pre-commit autoupdate && "No updates"
- name: Create Pull Request
id: cpr
uses: peter-evans/create-pull-request@v6
Expand Down
4 changes: 3 additions & 1 deletion template/.github/workflows/PreCommitUpdate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@ jobs:
- name: Install pre-commit
run: pip install pre-commit
- name: Run pre-commit's autoupdate
run: pre-commit autoupdate
run: |
# autoupdate returns 1 if any changes were made
pre-commit autoupdate && "No updates"
- name: Create Pull Request
id: cpr
uses: peter-evans/create-pull-request@v6
Expand Down

0 comments on commit 1da0ac1

Please sign in to comment.