Skip to content

Commit

Permalink
Test branch (#206)
Browse files Browse the repository at this point in the history
* add auto_approval

* try the other useraccount elastic-vault-github-plugin-prod

* use a different branch

* capture events data for github action

* use elastic-vault-github-plugin-prod

* logging event data

* add back debug

* update

* update

* update

* update

---------

Co-authored-by: ChristianeU <[email protected]>
  • Loading branch information
navyau09 and ChristianeU authored Nov 8, 2024
1 parent 15cf539 commit 036344e
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/pr_auto_approval.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
on:
pull_request:
types:
- opened
branches:
- '*'

jobs:
approve:
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'
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}}

0 comments on commit 036344e

Please sign in to comment.