-
Notifications
You must be signed in to change notification settings - Fork 217
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
905b04a
commit 4ad6034
Showing
1 changed file
with
21 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,24 @@ | ||
on: | ||
pull_request: | ||
types: | ||
- opened | ||
branches: | ||
- '*' | ||
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}} | ||
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 == 'elastic-vault-github-plugin-prod[bot]' | ||
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 |