[8.9] [Ops] Fix auto-approve script (#160856) (#160862)

# Backport

This will backport the following commits from `main` to `8.9`:
- [[Ops] Fix auto-approve script
(#160856)](https://github.com/elastic/kibana/pull/160856)

<!--- Backport version: 8.9.7 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT [{"author":{"name":"Alex
Szabo","email":"alex.szabo@elastic.co"},"sourceCommit":{"committedDate":"2023-06-29T10:04:55Z","message":"[Ops]
Fix auto-approve script (#160856)\n\n## Summary\r\nOur original intent
of kibanamachine approving their own PRs didn't\r\nwork, we switch to
the default github-actions as an approver for\r\nkibanamachine's
PRs.","sha":"e3a35b9515f6b2e91226edc7392288f943a0ba3e","branchLabelMapping":{"^v8.10.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["chore","Team:Operations","release_note:skip","backport:all-open","v8.10.0"],"number":160856,"url":"https://github.com/elastic/kibana/pull/160856","mergeCommit":{"message":"[Ops]
Fix auto-approve script (#160856)\n\n## Summary\r\nOur original intent
of kibanamachine approving their own PRs didn't\r\nwork, we switch to
the default github-actions as an approver for\r\nkibanamachine's
PRs.","sha":"e3a35b9515f6b2e91226edc7392288f943a0ba3e"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v8.10.0","labelRegex":"^v8.10.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/160856","number":160856,"mergeCommit":{"message":"[Ops]
Fix auto-approve script (#160856)\n\n## Summary\r\nOur original intent
of kibanamachine approving their own PRs didn't\r\nwork, we switch to
the default github-actions as an approver for\r\nkibanamachine's
PRs.","sha":"e3a35b9515f6b2e91226edc7392288f943a0ba3e"}}]}] BACKPORT-->

Co-authored-by: Alex Szabo <alex.szabo@elastic.co>
This commit is contained in:
Kibana Machine 2023-06-29 06:20:58 -04:00 committed by GitHub
parent 0eed5d1fd3
commit 16f214b5bb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -4,10 +4,6 @@ on:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: hmarr/debug-action@v2
approve:
name: Auto-approve backport
runs-on: ubuntu-latest
@ -18,5 +14,3 @@ jobs:
pull-requests: write
steps:
- uses: hmarr/auto-approve-action@v3
with:
github-token: ${{ secrets.KIBANAMACHINE_TOKEN }}