From 719ce15b69d9fdbd09b0ec59e58140126527e098 Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Sat, 8 Aug 2020 13:45:44 -0400 Subject: [PATCH] Minor tweaks to the Github workflows. --- .github/workflows/ci.yml | 1 + .github/workflows/pr.yml | 1 + Makefile | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index cffe7eb..43278b9 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -19,6 +19,7 @@ jobs: - run: make - uses: actions/upload-artifact@v2 with: + name: coverage path: cover.html - uses: actions/upload-artifact@v2 with: diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index 7563803..c628daf 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -17,4 +17,5 @@ jobs: - run: make - uses: actions/upload-artifact@v2 with: + name: coverage path: cover.html diff --git a/Makefile b/Makefile index bb32822..7e343af 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,7 @@ .PHONY: all: coverage linux mac -DIRTY=$(shell [[ -z `git status --untracked-files=no --porcelain` ]] || echo "-dirty") +DIRTY=$(shell test -z "`git status --untracked-files=no --porcelain`" || echo "-dirty") GITHASH=$(shell git log --pretty='%H' -1) LDFLAG=-ldflags "-X 'main.versionGit=$(GITHASH)$(DIRTY)'" -- 2.22.5