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 71e474b commit ea9b823
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/pr_auto_merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ on:
#pull_request:
workflow_dispatch:
jobs:
build:
Auto_Merge:
runs-on: ubuntu-latest
permissions:
contents: write
Expand All @@ -15,6 +15,7 @@ jobs:
urls=$(gh pr list --json url | jq -r '.[].url')
for url in $urls; do
echo "Approve PR: $url"
gh pr merge --auto -m "$url"
gh pr review --approve "$url"
done
env:
Expand Down

0 comments on commit ea9b823

Please sign in to comment.