Skip to content

Commit

Permalink
Fix Makefile to handle refs/pull git refs
Browse files Browse the repository at this point in the history
  • Loading branch information
stepanstipl committed Apr 15, 2020
1 parent 9c4657f commit b9b45f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ endif
.DEFAULT_GOAL :=help

GITHUB_REF ?= dev
GIT_REF ?= $(subst refs/heads/,,$(subst refs/tags/,,$(GITHUB_REF)))
GIT_REF ?= $(shell echo "$(GITHUB_REF)" | sed "s,refs/[^/]*/,," | tr -cd '[:alnum:]._')
GITHUB_SHA ?= dev
GIT_SHA ?= $(GITHUB_SHA)

Expand Down

0 comments on commit b9b45f3

Please sign in to comment.