From ed93e9a728ae9e817525ec71e9a12cc46383ed39 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakob=20M=C3=B6ller?= Date: Thu, 24 Oct 2024 10:07:05 +0200 Subject: [PATCH] chore(release): also call make generate to update files (#992) This allows us to also generate the README.md files automatically so that they contain correct references #### What this PR does / why we need it #### Which issue(s) this PR fixes #990 --- .github/workflows/release.yaml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index d6502d34ef..b1a60d85f5 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -282,8 +282,10 @@ jobs: git checkout ${GITHUB_REF#refs/heads/} v="$(go run ./api/version/generate bump-version)" echo "$v" > VERSION - git add VERSION - git commit -m "Update version file to $v" + # Trigger a bump of any potential files that depend on a new version + make generate + git add --all + git commit -m "Update version to $v" git push origin ${GITHUB_REF#refs/heads/} echo "Next branch version is $v"