Minor tweaks to the Github workflows.
authorRobert Sesek <rsesek@bluestatic.org>
Sat, 8 Aug 2020 17:45:44 +0000 (13:45 -0400)
committerRobert Sesek <rsesek@bluestatic.org>
Sat, 8 Aug 2020 17:45:44 +0000 (13:45 -0400)
.github/workflows/ci.yml
.github/workflows/pr.yml
Makefile

index cffe7ebfd60b1dad05155ef12e28786d1be7245e..43278b98c2acec42444f16e1da402d58f1c20f6a 100644 (file)
@@ -19,6 +19,7 @@ jobs:
     - run: make
     - uses: actions/upload-artifact@v2
       with:
+        name: coverage
         path: cover.html
     - uses: actions/upload-artifact@v2
       with:
index 7563803f0c5f98b4ce12d54b119b1cdf6b5b509a..c628daf9bb2c90da0baabe1d5cfa71c9d34061de 100644 (file)
@@ -17,4 +17,5 @@ jobs:
     - run: make
     - uses: actions/upload-artifact@v2
       with:
+        name: coverage
         path: cover.html
index bb328229677dce9ff402c851f91a70006bea293d..7e343af5a46b0a74d629ea8fe779cf84b9af8b51 100644 (file)
--- 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)'"