Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Github action flow #221

Merged
merged 1 commit into from
Dec 5, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 21 additions & 24 deletions .github/workflows/pr_auto_approval.yml
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