You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if echo "$LABELS" | grep -qE "(changelog-not-needed|dependency-update|vendored-mimir-prometheus-update|helm-weekly-release)"; then
18
+
19
+
# "grep -w" to check for the whole words
20
+
if echo "$LABELS" | grep -w -qE "(changelog-not-needed|dependency-update|vendored-mimir-prometheus-update|helm-weekly-release|backport)"; then
20
21
echo "skip=true" >> $GITHUB_OUTPUT
21
22
echo "PR has a label that skips changelog check, skipping changelog check"
22
23
else
@@ -30,10 +31,23 @@ jobs:
30
31
if: steps.check-label.outputs.skip == 'false'
31
32
run: |
32
33
PR_NUMBER=${{ github.event.pull_request.number }}
34
+
MAIN_CHANGELOG_FOUND=false
35
+
HELM_CHANGELOG_FOUND=false
36
+
33
37
if grep -q "#${PR_NUMBER}" CHANGELOG.md; then
34
38
echo "✅ PR #${PR_NUMBER} is referenced in CHANGELOG.md"
39
+
MAIN_CHANGELOG_FOUND=true
40
+
fi
41
+
42
+
if grep -q "#${PR_NUMBER}" operations/helm/charts/mimir-distributed/CHANGELOG.md; then
43
+
echo "✅ PR #${PR_NUMBER} is referenced in helm CHANGELOG.md"
44
+
HELM_CHANGELOG_FOUND=true
45
+
fi
46
+
47
+
if [ "$MAIN_CHANGELOG_FOUND" = true ] || [ "$HELM_CHANGELOG_FOUND" = true ]; then
48
+
echo "✅ PR #${PR_NUMBER} is referenced in at least one changelog"
35
49
else
36
-
echo "❌ PR #${PR_NUMBER} is not referenced in CHANGELOG.md"
37
-
echo "Please add an entry for this PR in CHANGELOG.md or add one of these labels if this change doesn't require a changelog entry: 'changelog-not-needed', 'dependency-update', 'vendored-mimir-prometheus-update', 'helm-weekly-release'"
50
+
echo "❌ PR #${PR_NUMBER} is not referenced in CHANGELOG.md or operations/helm/charts/mimir-distributed/CHANGELOG.md"
51
+
echo "Please add an entry for this PR in the appropriate changelog or add one of these labels if this change doesn't require a changelog entry: 'changelog-not-needed', 'dependency-update', 'vendored-mimir-prometheus-update', 'helm-weekly-release'"
ignored-tests: "TestOurUpstreamTestCasesAreInSyncWithUpstream"# This is supposed to block upstream mimir-prometheus updates, so it's also expected to fail.
# This job uses "Mimir bot" instead of "github-actions bot" (secrets.GITHUB_TOKEN)
113
+
# because any events triggered by the latter don't spawn GitHub actions.
114
+
# Refer to https://docs.github.com/en/actions/security-for-github-actions/security-guides/automatic-token-authentication#using-the-github_token-in-a-workflow
115
+
- name: Retrieve GitHub App Credentials from Vault
title: \[${{ inputs.mimir_branch }}\] Update mimir-prometheus to ${{ steps.get-commit-info.outputs.short_hash }}
154
+
title: '[${{ steps.branch-names.outputs.mimir_branch }}] Update mimir-prometheus to ${{ steps.get-commit-info.outputs.short_hash }}'
114
155
body: |
115
156
## Update mimir-prometheus dependency
116
157
117
158
*This PR was automatically created by the [update-vendored-mimir-prometheus.yml](https://github.com/grafana/mimir/blob/main/.github/workflows/update-vendored-mimir-prometheus.yml) workflow.*
0 commit comments