diff --git a/.github/workflows/PreCommitUpdate.yml b/.github/workflows/PreCommitUpdate.yml index 6cf6d7d9..d2d4723c 100644 --- a/.github/workflows/PreCommitUpdate.yml +++ b/.github/workflows/PreCommitUpdate.yml @@ -18,8 +18,8 @@ jobs: run: pip install pre-commit - name: Run pre-commit's autoupdate run: | - # autoupdate returns 1 if any changes were made - pre-commit autoupdate && "No updates" + # ignore exit code + pre-commit autoupdate || true - name: Create Pull Request id: cpr uses: peter-evans/create-pull-request@v6 diff --git a/template/.github/workflows/PreCommitUpdate.yml b/template/.github/workflows/PreCommitUpdate.yml index 6cf6d7d9..d2d4723c 100644 --- a/template/.github/workflows/PreCommitUpdate.yml +++ b/template/.github/workflows/PreCommitUpdate.yml @@ -18,8 +18,8 @@ jobs: run: pip install pre-commit - name: Run pre-commit's autoupdate run: | - # autoupdate returns 1 if any changes were made - pre-commit autoupdate && "No updates" + # ignore exit code + pre-commit autoupdate || true - name: Create Pull Request id: cpr uses: peter-evans/create-pull-request@v6