From 4333f1de82be92200b14db731e909a94bcb99cfa Mon Sep 17 00:00:00 2001 From: Viacheslav Poturaev Date: Sun, 1 Nov 2020 21:50:34 +0100 Subject: [PATCH] Rename GitHub workflows (#6) --- .gitignore | 4 ++-- doc.go | 2 +- makefiles/github-actions.mk | 2 +- templates/{.github => github}/workflows/doc.go | 0 templates/{.github => github}/workflows/golangci-lint.yml | 0 templates/{.github => github}/workflows/test.yml | 0 6 files changed, 4 insertions(+), 4 deletions(-) rename templates/{.github => github}/workflows/doc.go (100%) rename templates/{.github => github}/workflows/golangci-lint.yml (100%) rename templates/{.github => github}/workflows/test.yml (100%) diff --git a/.gitignore b/.gitignore index dc1d402..10e6ce9 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,2 @@ -/.idea -/.vscode +/.idea +/.vscode diff --git a/doc.go b/doc.go index e861a51..ff39b7d 100644 --- a/doc.go +++ b/doc.go @@ -7,5 +7,5 @@ package dev import ( _ "github.com/bool64/dev/makefiles" _ "github.com/bool64/dev/scripts" - _ "github.com/bool64/dev/templates/.github/workflows" + _ "github.com/bool64/dev/templates/github/workflows" ) diff --git a/makefiles/github-actions.mk b/makefiles/github-actions.mk index bb288d3..642096f 100644 --- a/makefiles/github-actions.mk +++ b/makefiles/github-actions.mk @@ -2,6 +2,6 @@ GO ?= go ## Replace GitHub Actions from template github-actions: - @mkdir -p $(PWD)/.github/workflows && chmod +w $(PWD)/.github/workflows/*.yml && cp $(DEVGO_PATH)/templates/.github/workflows/*.yml $(PWD)/.github/workflows/ && chmod +w $(PWD)/.github/workflows/*.yml && git add $(PWD)/.github + @mkdir -p $(PWD)/.github/workflows && chmod +w $(PWD)/.github/workflows/*.yml && cp $(DEVGO_PATH)/templates/github/workflows/*.yml $(PWD)/.github/workflows/ && chmod +w $(PWD)/.github/workflows/*.yml && git add $(PWD)/.github .PHONY: github-actions diff --git a/templates/.github/workflows/doc.go b/templates/github/workflows/doc.go similarity index 100% rename from templates/.github/workflows/doc.go rename to templates/github/workflows/doc.go diff --git a/templates/.github/workflows/golangci-lint.yml b/templates/github/workflows/golangci-lint.yml similarity index 100% rename from templates/.github/workflows/golangci-lint.yml rename to templates/github/workflows/golangci-lint.yml diff --git a/templates/.github/workflows/test.yml b/templates/github/workflows/test.yml similarity index 100% rename from templates/.github/workflows/test.yml rename to templates/github/workflows/test.yml