Change: Releases now contain commit digests, automerge renovate (#70)

This commit is contained in:
Valentin Klopfenstein 2025-05-08 14:20:58 +02:00 committed by GitHub
parent 1f55bcba86
commit a479b499c1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 23 additions and 1 deletions

View file

@ -16,6 +16,8 @@ jobs:
uses: actions/checkout@v4 uses: actions/checkout@v4
with: with:
fetch-depth: 0 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 - name: Configure Git
run: | run: |
@ -28,3 +30,16 @@ jobs:
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}" CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
with: with:
charts_dir: ./charts 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 }}

View file

@ -6,5 +6,12 @@
":timezone(Europe/Zurich)", ":timezone(Europe/Zurich)",
"group:kubernetes" "group:kubernetes"
], ],
"schedule": "on friday and saturday" "schedule": "on friday and saturday",
"packageRules": [
{
"matchUpdateTypes": ["minor", "patch"],
"matchCurrentVersion": "!/^0/",
"automerge": true
}
]
} }