Skip to content

Commit

Permalink
Update pr_auto_merge.yml to have specific actor
Browse files Browse the repository at this point in the history
  • Loading branch information
NadeemYaseen authored Oct 14, 2024
1 parent ef1008f commit 86326f0
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/pr_auto_merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,9 @@ jobs:
pull-requests: write
steps:
- uses: actions/checkout@v4
- name: Run step if actor is user_a, user_b, or user_c
if: github.actor == 'NadeemYaseen' || github.actor == 'user_b' || github.actor == 'user_c'
run: echo "Hello, the workflow was triggered by ${{ github.actor }}!

- name: Try auto approve
if: github.actor == 'NadeemYaseen' || github.actor == 'zhergarvi' || github.actor == 'abdulhameed-akram'
run: |
urls=$(gh pr list --json url | jq -r '.[].url')
for url in $urls; do
Expand Down

0 comments on commit 86326f0

Please sign in to comment.