Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
navyau09 committed Nov 7, 2024
1 parent fbcdd5a commit 8c91659
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/pr_auto_approval.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
name: Auto-Approve Docker Push PR

on:
pull_request_target:
branches:
Expand All @@ -7,12 +9,17 @@ jobs:
name: Auto-approve docker push pr
runs-on: ubuntu-latest
if: |
startsWith(github.event.pull_request.head.ref, 'docker_files_push') &&
startsWith(github.event.pull_request.head.ref, 'docker_files_push_') &&
github.event.pull_request.user.login == 'elasticmachine'
permissions:
pull-requests: write
contents: write
steps:
- name: Debug PR info
run: |
echo "PR Head Ref: ${{ github.event.pull_request.head.ref }}"
echo "PR User Login: ${{ github.event.pull_request.user.login }}"
- name: Auto Approve
uses: hmarr/auto-approve-action@v3
with:
Expand Down

0 comments on commit 8c91659

Please sign in to comment.