From bb75b907730f8d2eadd767c19305ed6637da6569 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Grzegorz=20=C5=9Aliwi=C5=84ski?= Date: Tue, 21 Jan 2025 09:56:24 +0100 Subject: [PATCH] Skip pre-commit checks for pre-commit actor --- .github/workflows/pr-check.yml | 2 +- newsfragments/+a82453f2.misc.rst | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 newsfragments/+a82453f2.misc.rst diff --git a/.github/workflows/pr-check.yml b/.github/workflows/pr-check.yml index c1806b4e..75be9829 100644 --- a/.github/workflows/pr-check.yml +++ b/.github/workflows/pr-check.yml @@ -16,7 +16,7 @@ jobs: command: tbump --dry-run --only-patch $(pipenv run tbump current-version)"-x" towncrier: runs-on: ubuntu-latest - if: ${{ github.actor != 'dependabot[bot]' }} + if: ${{ !contains(fromJSON('["dependabot[bot]","pre-commit-ci"]'), github.actor) }} steps: - uses: fizyk/actions-reuse/.github/actions/pipenv@v2.4.8 with: diff --git a/newsfragments/+a82453f2.misc.rst b/newsfragments/+a82453f2.misc.rst new file mode 100644 index 00000000..41cafa83 --- /dev/null +++ b/newsfragments/+a82453f2.misc.rst @@ -0,0 +1 @@ +Skip newsfragment checks for pre-commit actor.