Skip to content

Commit

Permalink
Fix workflow condition to include pull_request event type
Browse files Browse the repository at this point in the history
  • Loading branch information
appujet committed Apr 8, 2024
1 parent 63b16ef commit bd3f55e
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions .github/workflows/main .yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit bd3f55e

Please sign in to comment.