From bd3f55ef744262acf0beb380d8f5f18ef3ac9f4e Mon Sep 17 00:00:00 2001 From: brblacky <77108939+brblacky@users.noreply.github.com> Date: Mon, 8 Apr 2024 18:42:28 +0530 Subject: [PATCH] Fix workflow condition to include pull_request event type --- .github/workflows/main .yml | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/.github/workflows/main .yml b/.github/workflows/main .yml index b388095..bc619a6 100644 --- a/.github/workflows/main .yml +++ b/.github/workflows/main .yml @@ -4,20 +4,12 @@ on: push: branches: - main - pull_request: - types: [closed] jobs: remove_duplicates: runs-on: ubuntu-latest - if: > - github.event_name == 'push' && - github.ref == 'refs/heads/main' && - github.actor.login == 'github-actions[bot]' || - github.event_name == 'pull_request' && - github.event.pull_request.merged == true && - github.actor.login == 'github-actions[bot]' + if: github.event_name == 'push' && github.ref == 'refs/heads/main' steps: - name: Checkout Repository