From 2738fba45301dd5b8ba15f5fcaabef754a9ab7d6 Mon Sep 17 00:00:00 2001 From: Abel Soares Siqueira Date: Thu, 30 May 2024 16:28:38 +0200 Subject: [PATCH] =?UTF-8?q?fix:=20=F0=9F=90=9B=20Fix=20PreCommitUpdate=20w?= =?UTF-8?q?orkflow?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This time, we more explicitly ignore the exit code. --- .github/workflows/PreCommitUpdate.yml | 4 ++-- template/.github/workflows/PreCommitUpdate.yml | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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