-
Notifications
You must be signed in to change notification settings - Fork 220
56 lines (56 loc) · 1.62 KB
/
automerge-workflow.yml
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
jobs:
automerge:
if: (github.event.pull_request.user.login == 'pulumi-bot') && (github.event.pull_request.head.repo.full_name == github.repository)
name: Automerge Workflow
runs-on: ubuntu-latest
steps:
- if: env.GITHUB_TOKEN != null
env:
GITHUB_TOKEN: ${{ secrets.PULUMI_BOT_TOKEN }}
LOG: "TRACE"
MERGE_COMMIT_MESSAGE: pull-request-title
MERGE_FORKS: "false"
MERGE_LABELS: automation/merge
MERGE_METHOD: squash
MERGE_REMOVE_LABELS: automation/merge
MERGE_RETRIES: "50"
MERGE_RETRY_SLEEP: "60000"
MERGE_FILTER_AUTHOR: "pulumi-bot"
UPDATE_LABELS: automation/update
UPDATE_METHOD: rebase
name: Automerge
uses: pascalgn/[email protected]
notify:
if: failure()
name: Send slack notification
runs-on: ubuntu-latest
needs: [automerge]
steps:
- name: Slack Notification
uses: docker://sholung/action-slack-notify:v2.3.0
env:
SLACK_CHANNEL: docs-ops
SLACK_COLOR: "#F54242"
SLACK_MESSAGE: "automerge failure in pulumi/docs repo :meow_sad:"
SLACK_USERNAME: docsbot
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK_URL }}
SLACK_ICON: https://www.pulumi.com/logos/brand/avatar-on-white.png
name: Automerge workflow
"on":
check_suite:
types:
- completed
pull_request:
types:
- labeled
- unlabeled
- synchronize
- opened
- edited
- ready_for_review
- reopened
- unlocked
pull_request_review:
types:
- submitted
status: {}