mirror of
https://github.com/keymanapp/keyman.git
synced 2026-08-05 00:15:32 +00:00
maint(resources): auto merge on branch name rather than label
In order to avoid a race condition where label can be added after the GHA starts, we will check the branch name instead of `automerge` label. Fixes: #15027 Test-bot: skip Build-bot: skip
This commit is contained in:
parent
702a64c281
commit
eb1babfee1
1 changed files with 1 additions and 2 deletions
|
|
@ -13,7 +13,7 @@ on:
|
|||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
if: ${{ github.repository == 'keymanapp/keyman' && github.actor == 'keyman-server' && startsWith(github.event.pull_request.title, 'auto:') }}
|
||||
if: ${{ github.repository == 'keymanapp/keyman' && github.actor == 'keyman-server' && startsWith(github.head_ref, 'auto/') }}
|
||||
steps:
|
||||
- name: auto approve PR from keyman-server
|
||||
shell: bash
|
||||
|
|
@ -23,7 +23,6 @@ jobs:
|
|||
gh pr review -R keymanapp/keyman --approve ${{ github.event.pull_request.number }}
|
||||
- name: mark PR for auto-merge from keyman-server
|
||||
shell: bash
|
||||
if: contains(github.event.pull_request.labels.*.name, 'automerge')
|
||||
env:
|
||||
GH_TOKEN: "${{ secrets.AUTOINC_GITHUB_TOKEN }}"
|
||||
run: |
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue