Skip to content

Commit

Permalink
Fix for version (#732)
Browse files Browse the repository at this point in the history
* fix version assignment
  • Loading branch information
oliveromahony authored Jul 5, 2024
1 parent cd9527c commit 2c39dd8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ include Makefile.tools
# Variable Definitions #
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
VERSION ?= $(shell git describe --match "v[0-9]*" --abbrev=0 --tags)
ifeq ($(VERSION),)
VERSION ?= $(shell curl https://api.github.com/repos/nginx/agent/releases/latest -s | jq .name -r)
ifeq ($(strip $(VERSION)),)
VERSION := $(shell curl https://api.github.com/repos/nginx/agent/releases/latest -s | jq .name -r)
endif
COMMIT = $(shell git rev-parse --short HEAD)
DATE = $(shell date +%F_%H-%M-%S)
Expand Down

0 comments on commit 2c39dd8

Please sign in to comment.