From 1dd3cfea09315031c8b3a5f9591b6239ad4ba446 Mon Sep 17 00:00:00 2001 From: Simon Diesenreiter Date: Mon, 2 Dec 2024 06:41:46 +0100 Subject: [PATCH] ci: bugfixes with workflows, ref: NOISSUE --- .gitea/workflows/main.yml | 3 +++ .gitea/workflows/release.yml | 3 +++ Makefile | 2 +- 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/main.yml b/.gitea/workflows/main.yml index 37da8b2..9f0e16d 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 92528eb..4fd291d 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 1f0d3c5..e3e13fd 100644 --- a/Makefile +++ b/Makefile @@ -4,7 +4,7 @@ USING_POETRY=$(shell grep "tool.poetry" pyproject.toml && echo "yes") .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: