diff --git a/.github/workflows/push_test.yml b/.github/workflows/push_test.yml index 2ada003..331302f 100644 --- a/.github/workflows/push_test.yml +++ b/.github/workflows/push_test.yml @@ -18,6 +18,8 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 + with: + fetch-depth: 0 - uses: docker://golang:1.17 with: args: make test diff --git a/Makefile b/Makefile index 3d048d9..66e4433 100644 --- a/Makefile +++ b/Makefile @@ -2,7 +2,7 @@ BUILD_DIR=./bin DOCKER_CMD=docker run --rm -it -v "$$PWD":/usr/src/myapp -w /usr/src/myapp golang:1.17 local: - GIT_CMT=$$(git describe --tags) && go build -o up-rewrite -ldflags "-X github.com/karmanyaahm/up_rewrite/config.Version=$$GIT_CMT" + GIT_CMT=$$(git describe --tags --always) && go build -o up-rewrite -ldflags "-X github.com/karmanyaahm/up_rewrite/config.Version=$$GIT_CMT" local-docker: $(DOCKER_CMD) make local all: