From 41f275025b2b0a51a292a38be2a299c93e9bcb9f Mon Sep 17 00:00:00 2001 From: Simon Diesenreiter Date: Mon, 2 Dec 2024 06:40:54 +0100 Subject: [PATCH] ci: bugfixes with workflows, ref: NOISSUE --- .gitea/rename_project.sh | 2 ++ .gitea/workflows/main.yml | 3 +++ .gitea/workflows/release.yml | 3 +++ Makefile | 2 +- 4 files changed, 9 insertions(+), 1 deletion(-) diff --git a/.gitea/rename_project.sh b/.gitea/rename_project.sh index 022fc64..66cb172 100755 --- a/.gitea/rename_project.sh +++ b/.gitea/rename_project.sh @@ -38,3 +38,5 @@ mv $name.Tests/project_name.Tests.csproj $name.Tests/$name.Tests.csproj # This command runs only once on GHA! rm -rf .gitea/template.yml +rm -rf project_name +rm -rf project_name.Tests diff --git a/.gitea/workflows/main.yml b/.gitea/workflows/main.yml index bffb70d..338c29c 100644 --- a/.gitea/workflows/main.yml +++ b/.gitea/workflows/main.yml @@ -2,6 +2,9 @@ name: CI +env: + SKIP_MAKE_SETUP_CHECK: 'true' + # Controls when the workflow will run on: # Triggers the workflow on push or pull request events but only for the main branch diff --git a/.gitea/workflows/release.yml b/.gitea/workflows/release.yml index ff6a999..4da3b04 100644 --- a/.gitea/workflows/release.yml +++ b/.gitea/workflows/release.yml @@ -2,6 +2,9 @@ name: Upload Python Package permissions: contents: write +env: + SKIP_MAKE_SETUP_CHECK: 'true' + on: push: # Sequence of patterns matched against refs/tags diff --git a/Makefile b/Makefile index 6e3dc68..d724c7c 100644 --- a/Makefile +++ b/Makefile @@ -2,7 +2,7 @@ .PHONY: issetup issetup: - @[ -f .git/hooks/commit-msg ] || (echo "You must run 'make setup' first to initialize the repo!" && exit 1) + @[ -f .git/hooks/commit-msg ] || [ -v SKIP_MAKE_SETUP_CHECK ] || (echo "You must run 'make setup' first to initialize the repo!" && exit 1) .PHONY: setup setup: