From 668c9c0cdfef1524c98161f04045f8314ab78f2f Mon Sep 17 00:00:00 2001 From: Christiane Umutoni Date: Tue, 12 Nov 2024 02:54:52 -0600 Subject: [PATCH] only check PR ref (#209) --- .github/workflows/pr_auto_approval.yml | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/.github/workflows/pr_auto_approval.yml b/.github/workflows/pr_auto_approval.yml index aab4c8a..1419a31 100644 --- a/.github/workflows/pr_auto_approval.yml +++ b/.github/workflows/pr_auto_approval.yml @@ -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 \ No newline at end of file