Skip to content

Commit

Permalink
only check PR ref (#209)
Browse files Browse the repository at this point in the history
  • Loading branch information
ChristianeU authored Nov 12, 2024
1 parent 036344e commit 668c9c0
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions .github/workflows/pr_auto_approval.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,13 @@ jobs:
name: Auto-approve docker push pr
runs-on: ubuntu-latest
if: |
startsWith(github.event.pull_request.head.ref, 'docker_files_push_') &&
github.event.pull_request.user.login == 'elasticmachine'
startsWith(github.event.pull_request.head.ref, 'docker_files_push_')
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:
github_token: ${{secrets.ELASTICMACHINE_TOKEN}}
- uses: hmarr/auto-approve-action@v3

0 comments on commit 668c9c0

Please sign in to comment.