mirror of
https://github.com/cert-manager/webhook-example.git
synced 2025-08-22 12:12:53 +02:00
Change: Releases now contain commit digests, automerge renovate (#70)
This commit is contained in:
parent
1f55bcba86
commit
a479b499c1
2 changed files with 23 additions and 1 deletions
15
.github/workflows/helm-release.yaml
vendored
15
.github/workflows/helm-release.yaml
vendored
|
@ -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 }}
|
|
@ -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
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue