Skip to content
This repository has been archived by the owner on Jan 13, 2023. It is now read-only.

Commit

Permalink
Merge pull request #68 from redskyops/fixTagFeetch
Browse files Browse the repository at this point in the history
fix: Ignore invalid git tags
  • Loading branch information
bradbeam authored May 11, 2020
2 parents 88bc906 + f4f430e commit ef635ce
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/master.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ jobs:
steps:
- name: Check out code
uses: actions/checkout@v2
- name: Unshallow
run: git fetch --prune --unshallow
- name: Fetch tags
run: git fetch --depth=1 origin '+refs/tags/*:refs/tags/*'
- name: Set up Go
uses: actions/setup-go@v2
with:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ jobs:
steps:
- name: Check out code
uses: actions/checkout@v2
- name: Unshallow
run: git fetch --prune --unshallow
- name: Fetch tags
run: git fetch --depth=1 origin '+refs/tags/*:refs/tags/*'
- name: Verify Header
uses: talos-systems/conform@v0.1.0-alpha.19
- name: Set up Go
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ GOBIN=$(shell go env GOBIN)
endif

# Collect version information
VERSION ?= $(shell git ls-remote --tags origin 'v*' | tail -1 | awk -F/ '{ print $$3 }')-next
VERSION ?= $(shell git ls-remote --tags --refs origin 'v*' | awk -F/ '{ print $$3 }' | tail -1)-next
BUILD_METADATA ?=
GIT_COMMIT ?= $(shell git rev-parse HEAD)

Expand Down

0 comments on commit ef635ce

Please # to comment.