-
Notifications
You must be signed in to change notification settings - Fork 2
42 lines (37 loc) · 1.24 KB
/
automerge-release-please.yaml
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
40
41
42
name: Release Please (Scheduled)
on:
# Try enabling auto-merge for all open pull requests.
schedule:
# 8:55pm UTC is 09h55 NZST, giving us 5 min to run before the maint window starts 10am NZ time
- cron: '55 20 * * *'
# Try enabling auto-merge for the specified pull request,
# review or all open pull requests if none is specified.
workflow_dispatch:
inputs:
pull-request:
description: Pull Request Number
required: false
review:
description: Review ID
required: false
jobs:
automerge:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
token: ${{ secrets.RENOVATE_TOKEN }}
- name: Check if safe to release (and we're on a -pre version currently)
id: safe_to_release
run: |
grep 'safeToRelease: true' charts/myprecious/values.yaml
- uses: reitermarkus/automerge@v2
with:
token: ${{ secrets.MY_RELEASE_PLEASE_TOKEN }}
merge-method: rebase
required-labels: 'autorelease: pending'
pull-request: ${{ github.event.inputs.pull-request }}
review: ${{ github.event.inputs.review }}
dry-run: false