Skip to content

Commit 6522abc

Browse files
committed
Improve observability of build process
It turns out that the built binary is confused about its version. Add some additional output to be able to trace this. ``` Fetching latest release for repo overmindtech/ovm-cli Found latest release version: v0.6.1 Downloading file: ovm-cli_Linux_x86_64.tar.gz to: /home/runner/work/deploy/deploy/overmindtech Downloading file: ovm-cli-v0.6.1.tar.gz to: /home/runner/work/deploy/deploy/overmindtech Extracted ovm-cli_Linux_x86_64.tar.gz to /home/runner/work/deploy/deploy/overmindtech Extracted ovm-cli-v0.6.1.tar.gz to /home/runner/work/deploy/deploy/overmindtech Done: /home/runner/work/deploy/deploy/overmindtech/ovm-cli_Linux_x86_64.tar.gz,/home/runner/work/deploy/deploy/overmindtech/ovm-cli-v0.6.1.tar.gz Run ./overmindtech/ovm-cli --version ovm-cli version v0.6.0-5-g913d619 ```
1 parent 913d619 commit 6522abc

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

.github/actions/go_init/action.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,3 +35,4 @@ runs:
3535
git status
3636
exit 1
3737
fi
38+
cat cmd/commit.txt

.github/workflows/release.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ jobs:
2020
- name: Go Init
2121
uses: ./.github/actions/go_init
2222

23+
- run: go run main.go --version
24+
2325
- name: Run GoReleaser (publish)
2426
uses: goreleaser/goreleaser-action@v4
2527
if: ${{ github.event_name != 'pull_request' }}
@@ -44,4 +46,4 @@ jobs:
4446
if: ${{ github.event_name == 'pull_request' }}
4547
with:
4648
name: test-release
47-
path: dist/*
49+
path: dist/*

.github/workflows/tests.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ jobs:
2424

2525
- name: Go Test
2626
run: |
27+
go run main.go --version
2728
go test -v -timeout 5m ./...
2829
2930
golangci:

0 commit comments

Comments
 (0)