-
Notifications
You must be signed in to change notification settings - Fork 10
45 lines (42 loc) · 1.5 KB
/
merge-acm-alertmanager.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
43
44
45
name: ACM Alertmanager merger
on:
workflow_dispatch:
schedule:
- cron: '0 0 * * 1' #@weekly
pull_request:
paths:
- '.github/workflows/merge-acm-flow.yaml'
- '.github/workflows/merge-acm-alertmanager.yaml'
push:
paths:
- '.github/workflows/merge-acm-flow.yaml'
- '.github/workflows/merge-acm-alertmanager.yaml'
jobs:
alertmanager-merge:
uses: ./.github/workflows/merge-acm-flow.yaml
with:
upstream: prometheus/alertmanager
downstream: stolostron/prometheus-alertmanager
sandbox: rhobs/acm-prometheus-alertmanager
go-version: "1.22"
restore-upstream: >-
CHANGELOG.md
VERSION
go.mod
go.sum
assets-cmd: |
# Only compress assets if assets actually changed
# The git diff relies on gits remote naming. The merge-flow checks out
# $downstream as origin at the time of writing this code.
if ! git diff --exit-code origin/master ui/react-app; then
make assets-compress
find ui/react-app -type f -name '*.gz' -exec git add {} \;
git add ui/react-app/embed.go
git diff --cached --exit-code || git commit -s -m "[bot] assets: generate"
fi
secrets:
pr-app-id: ${{ secrets.ACM_APP_ID }}
pr-app-private-key: ${{ secrets.ACM_APP_PRIVATE_KEY }}
cloner-app-id: ${{ secrets.ACM_CLONER_APP_ID }}
cloner-app-private-key: ${{ secrets.ACM_CLONER_APP_PRIVATE_KEY }}
slack-webhook-url: ${{ secrets.ACM_SLACK_WEBHOOK_URL }}