mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 17:28:26 -04:00
fix(NA): checking pr author through github.head_ref instead of pull_request event on auto backport approve ghaction (#160807)
The action is getting skipped on backports and I suspect we were not checking correctly for the pr author. I changed it a little to make sure we are getting the pr author through the head ref so we can validate is being created by kibanamachine.
This commit is contained in:
parent
fd1bad1f66
commit
c7b2d2be8a
1 changed files with 1 additions and 4 deletions
5
.github/workflows/auto-approve-backports.yml
vendored
5
.github/workflows/auto-approve-backports.yml
vendored
|
@ -5,16 +5,13 @@ on:
|
|||
types:
|
||||
- opened
|
||||
|
||||
env:
|
||||
NODE_ENV: kibana-github-action
|
||||
|
||||
jobs:
|
||||
approve:
|
||||
name: Auto-approve backport
|
||||
runs-on: ubuntu-latest
|
||||
if: |
|
||||
contains(github.event.pull_request.labels.*.name, 'backport') &&
|
||||
github.event.pull_request.user.login == 'kibanamachine'
|
||||
contains(github.head_ref, 'kibanamachine:backport')
|
||||
permissions:
|
||||
pull-requests: write
|
||||
steps:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue