Skip to content

Commit

Permalink
feat: added automerge and autoapprove file in workflow (#24)
Browse files Browse the repository at this point in the history
* feat: added automerge and autoapprove file in workflow

* feat: added automerge and autoapprove file in workflow
  • Loading branch information
theprashantyadav authored Dec 4, 2023
1 parent 19799d6 commit 668a91d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/automerge.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: Auto approve and merge PRs by dependabot
on:
pull_request:
pull_request_target:
types:
- synchronize
- opened
Expand All @@ -22,7 +22,7 @@ jobs:
- id: automerge
name: automerge
uses: pascalgn/automerge-action@v0.15.6
if: github.event_name == 'pull_request' && github.event.action == 'synchronize' && github.event.pull_request.draft == false && success()
if: github.event_name == 'pull_request_target' && github.event.action == 'synchronize' && github.event.pull_request.draft == false && success()
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
MERGE_FILTER_AUTHOR: 'dependabot[bot]'
Expand Down

0 comments on commit 668a91d

Please sign in to comment.