bugfix: support non-VERSION approach for KSM #979
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Prometheus merger | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: '0 0 * * *' #@daily | |
pull_request: | |
paths: | |
- '.github/workflows/merge-flow.yaml' | |
- '.github/workflows/merge-prometheus.yaml' | |
push: | |
paths: | |
- '.github/workflows/merge-flow.yaml' | |
- '.github/workflows/merge-prometheus.yaml' | |
jobs: | |
prometheus-merge: | |
uses: ./.github/workflows/merge-flow.yaml | |
with: | |
upstream: prometheus/prometheus | |
downstream: openshift/prometheus | |
sandbox: rhobs/prometheus | |
go-version: "1.20" | |
restore-upstream: >- | |
CHANGELOG.md | |
VERSION | |
go.mod | |
go.sum | |
.golangci.yml | |
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 web/ui; then | |
make assets-compress | |
find web/ui/static -type f -name '*.gz' -exec git add {} \; | |
git add web/ui/embed.go | |
git diff --cached --exit-code || git commit -s -m "[bot] assets: generate" | |
fi | |
secrets: | |
pr-app-id: ${{ secrets.APP_ID }} | |
pr-app-private-key: ${{ secrets.APP_PRIVATE_KEY }} | |
cloner-app-id: ${{ secrets.CLONER_APP_ID }} | |
cloner-app-private-key: ${{ secrets.CLONER_APP_PRIVATE_KEY }} | |
slack-webhook-url: ${{ secrets.SLACK_WEBHOOK_URL }} |