-
Notifications
You must be signed in to change notification settings - Fork 80
39 lines (32 loc) · 940 Bytes
/
automerge.yml
File metadata and controls
39 lines (32 loc) · 940 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: Automerge
on:
pull_request_target:
branches: [ 'master', 'stable-*' ]
jobs:
automerge:
if: github.actor == 'dependabot[bot]'
runs-on: ubuntu-latest
steps:
- name: "Checkout ansible-hub-ui (${{ github.ref }})"
uses: actions/checkout@v4
- name: "Install node 20"
uses: actions/setup-node@v4
with:
node-version: '20'
- name: "Check automerge conditions"
working-directory: ".github/workflows"
env:
PR_TITLE: "${{ github.event.pull_request.title }}"
run: |
node automerge-condition.js
- name: "Wait for other tests"
working-directory: ".github/workflows"
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
node automerge-wait.js
- name: "Automerge the PR"
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
gh pr merge "${{ github.event.pull_request.number }}" -s --auto