From 156e1bca7d82ea8036297287cf0631bb440ed037 Mon Sep 17 00:00:00 2001 From: Yannic Kilcher Date: Mon, 9 Jan 2023 21:25:04 +0100 Subject: [PATCH] it was a bad fix --- .github/workflows/pre-commit.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pre-commit.yaml b/.github/workflows/pre-commit.yaml index 8395a06e..0f82185f 100644 --- a/.github/workflows/pre-commit.yaml +++ b/.github/workflows/pre-commit.yaml @@ -4,7 +4,7 @@ on: push: branches: - main - pull_request_target: + pull_request: workflow_call: jobs: @@ -17,7 +17,7 @@ jobs: python-version: "3.10" - uses: pre-commit/action@v3.0.0 - name: Post PR comment on failure - if: failure() && github.event_name == 'pull_request_target' + if: failure() && github.event_name == 'pull_request' uses: peter-evans/create-or-update-comment@v2 with: issue-number: ${{ github.event.pull_request.number }}