From 082a314dd581339ef7b9a5cbf20c94db045e4f7e Mon Sep 17 00:00:00 2001 From: Samuel Chai Date: Sun, 20 Apr 2025 17:44:24 -0400 Subject: [PATCH 1/4] Correct version bump --- .github/workflows/push.yaml | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/.github/workflows/push.yaml b/.github/workflows/push.yaml index 7f62e5a..05179f8 100644 --- a/.github/workflows/push.yaml +++ b/.github/workflows/push.yaml @@ -25,15 +25,14 @@ jobs: with: go-version: 1.23.3 - - name: Bump version and push tag - id: tag_version - uses: anothrNick/github-tag-action@1.36.0 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - WITH_V: true - DEFAULT_BUMP: patch - DEFAULT_BRANCH: ${{ github.ref_name }} - RELEASE_BRANCHES: ${{ github.ref_name }} + # TODO Find a better version of anothrNick action that will actually detect + - name: Bump version + shell: bash + run: | + version=$(sed -nE 's/^const VERSION = "(.*)"/\1/p' cmd/execute.go) + git tag $version + git push origin $version + - uses: cli/gh-extension-precompile@v2.0.0 with: From 109b1846ddbf3894b9b8bfd488236411a5cbd2c9 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sun, 20 Apr 2025 21:45:36 +0000 Subject: [PATCH 2/4] Updating tracked Git version in source code --- cmd/execute.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/execute.go b/cmd/execute.go index 9ce0e4f..d2a101f 100644 --- a/cmd/execute.go +++ b/cmd/execute.go @@ -11,7 +11,7 @@ import ( ) // VERSION number: changed in CI -const VERSION = "v0.1.0" +const VERSION = "v0.0.17" var rootPath string var repo repository.Repository From d3e8fd221f1a6fa79752a8b5344cfc46aa9223df Mon Sep 17 00:00:00 2001 From: Samuel Chai Date: Sun, 20 Apr 2025 17:46:51 -0400 Subject: [PATCH 3/4] #minor From 3dd733e534d5ee6a4740bdc64839facf42e51db1 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sun, 20 Apr 2025 21:47:41 +0000 Subject: [PATCH 4/4] Updating tracked Git version in source code --- cmd/execute.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/execute.go b/cmd/execute.go index d2a101f..9ce0e4f 100644 --- a/cmd/execute.go +++ b/cmd/execute.go @@ -11,7 +11,7 @@ import ( ) // VERSION number: changed in CI -const VERSION = "v0.0.17" +const VERSION = "v0.1.0" var rootPath string var repo repository.Repository