Skip to content

Commit

Permalink
Update pr_auto_merge.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
NadeemYaseen authored Oct 14, 2024
1 parent adac0cd commit f199f9c
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/pr_auto_merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,12 @@ jobs:
pull-requests: write
steps:
- uses: actions/checkout@v4
- name: Try auto merge
- name: Try auto approve
run: |
urls=$(gh pr list --json url | jq -r '.[].url')
for url in $urls; do
echo "Merging PR: $url"
#gh pr merge --auto -m "$url" -A pu.engineerg@gmail.com
echo "Approve PR: $url"
gh pr review --approve "$url"
done
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.APPROVE_PR }}

0 comments on commit f199f9c

Please sign in to comment.