From a479b499c12109c18fb9c64dec4632b65c10bf14 Mon Sep 17 00:00:00 2001 From: Valentin Klopfenstein <134367834+klopfenstein-puzzle@users.noreply.github.com> Date: Thu, 8 May 2025 14:20:58 +0200 Subject: [PATCH] Change: Releases now contain commit digests, automerge renovate (#70) --- .github/workflows/helm-release.yaml | 15 +++++++++++++++ renovate.json | 9 ++++++++- 2 files changed, 23 insertions(+), 1 deletion(-) diff --git a/.github/workflows/helm-release.yaml b/.github/workflows/helm-release.yaml index dae7c24..a661e03 100644 --- a/.github/workflows/helm-release.yaml +++ b/.github/workflows/helm-release.yaml @@ -16,6 +16,8 @@ jobs: uses: actions/checkout@v4 with: fetch-depth: 0 + # fetch-tags: true - from experience, this usually results in errors + # > Also see: https://github.com/actions/checkout/issues/1467 - name: Configure Git run: | @@ -28,3 +30,16 @@ jobs: CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: charts_dir: ./charts + + - name: Add commit digest to GH release + run: | + git fetch --tags + LAST_TAG=$(git tag --list 'cert-manager-webhook-dnsimple*' --sort=-v:refname | sed -n '2p') + CURRENT_TAG=$(git tag --list 'cert-manager-webhook-dnsimple*' --sort=-v:refname | sed -n '1p') + COMMITS=$(git log ${LAST_TAG}..${CURRENT_TAG} --oneline | sed 's/^/- /') + + # Workaround to get newlines working + echo -e "### Changes since \`${LAST_TAG}\`\n\n${COMMITS}" > msg + gh release edit ${CURRENT_TAG} --notes "$(cat msg)" + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file diff --git a/renovate.json b/renovate.json index 312a2d3..ec4ab37 100644 --- a/renovate.json +++ b/renovate.json @@ -6,5 +6,12 @@ ":timezone(Europe/Zurich)", "group:kubernetes" ], - "schedule": "on friday and saturday" + "schedule": "on friday and saturday", + "packageRules": [ + { + "matchUpdateTypes": ["minor", "patch"], + "matchCurrentVersion": "!/^0/", + "automerge": true + } + ] }