Skip to content

Commit

Permalink
add alertmanager and chnage cron schedule to weekly
Browse files Browse the repository at this point in the history
Signed-off-by: Coleen Iona Quadros <[email protected]>
  • Loading branch information
coleenquadros committed Jul 19, 2024
1 parent 5b9808e commit 6928053
Show file tree
Hide file tree
Showing 4 changed files with 48 additions and 3 deletions.
45 changes: 45 additions & 0 deletions .github/workflows/merge-acm-alertmanager.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: ACM Alertmanager merger

on:
workflow_dispatch:
schedule:
- cron: '0 0 * * 1' #@weekly
pull_request:
paths:
- '.github/workflows/merge-flow.yaml'
- '.github/workflows/merge-alertmanager.yaml'
push:
paths:
- '.github/workflows/merge-flow.yaml'
- '.github/workflows/merge-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 }}
2 changes: 1 addition & 1 deletion .github/workflows/merge-acm-flow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ jobs:
uses: rhobs/acm-create-pull-request@push-to-fork-token
id: create-pr
with:
title: "[bot] Bump ${{ inputs.downstream }} to ${{ steps.upstream.outputs.release }}"
title: "[ACM Obs bot] Bump ${{ inputs.downstream }} to ${{ steps.upstream.outputs.release }}"
body: |
## Description
This is an automated version bump from CI.
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/merge-acm-prometheus-operator.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: ACM Prometheus Operator merger
on:
workflow_dispatch:
schedule:
- cron: '0 0 * * *' #@daily
- cron: '0 0 * * 1' #@weekly
pull_request:
paths:
- '.github/workflows/merge-acm-flow.yaml'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/merge-acm-prometheus.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: ACM Prometheus merger
on:
workflow_dispatch:
schedule:
- cron: '0 0 * * *' #@daily
- cron: '0 0 * * 1' #@weekly
pull_request:
paths:
- '.github/workflows/merge-acm-flow.yaml'
Expand Down

0 comments on commit 6928053

Please sign in to comment.