From 92a98dff2b07ec45e5d12838bbeb79cf05b3d459 Mon Sep 17 00:00:00 2001 From: Jacob Tomlinson Date: Tue, 9 Jan 2024 14:58:56 +0000 Subject: [PATCH] Ensure version is set correctly when publishing kubectn-ng --- .github/workflows/release.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 0e450f7e..c24efaf8 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -40,10 +40,16 @@ jobs: poetry add kr8s==${RELEASE_VERSION} poetry lock popd + - name: Push new pins back to the repo + run: | git config --global user.name 'Kr8s Bot' git config --global user.email 'kr8s-bot@users.noreply.github.com' git commit -am "Bumping kubectl-ng pin to ${RELEASE_VERSION}" git push origin HEAD:main + + # Move the pin forward in our working copy to ensure the version is + # dynamically generated correctly during publishing + git tag -d ${RELEASE_VERSION} && git tag ${RELEASE_VERSION} - name: Publish kubectl-ng uses: JRubics/poetry-publish@v1.16 with: