From e7c504b331c8ac503c553a325bbe101cad989bdb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rahu=CE=BB=20D=C3=A9?= Date: Mon, 4 Jul 2022 07:43:56 +0100 Subject: [PATCH] skip logo paths and in actions (#1311) * skip logo paths and in actions * [skip ci] Keep CI happy --- .circleci/script/short_ci.clj | 9 +++++++-- .github/workflows/build.yml | 6 ++++++ 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/.circleci/script/short_ci.clj b/.circleci/script/short_ci.clj index a91ff1f8..19e8a85b 100644 --- a/.circleci/script/short_ci.clj +++ b/.circleci/script/short_ci.clj @@ -223,7 +223,8 @@ java -jar \"$jar\" --config .build/bb.edn --deps-root . release-artifact \"$refl :requires ["linux" "linux-static" "linux-aarch64"]}}]})))) (def skip-config - {:skip-if-only [#".*.md$"]}) + {:skip-if-only [#".*.md$" + #"^logo\/.*$"]}) (defn get-changes [] @@ -253,9 +254,11 @@ java -jar \"$jar\" --config .build/bb.edn --deps-root . release-artifact \"$refl (comment (main) + (def regexes [#".*.md$" - #".*.clj$"]) ; ignore clojure files + #".*.clj$" ; ignore clojure files + #"^logo\/.*$"]) (:out (tasks/shell {:out :string} "ls")) @@ -263,4 +266,6 @@ java -jar \"$jar\" --config .build/bb.edn --deps-root . release-artifact \"$refl (re-matches #".*.clj$" "src/file.clj.dfff") + (re-matches #"^logo\/.*$" "logo/foo/bar.jpg") + (relevant? ["src/file.clj"] regexes)) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 0fa18439..64c6479e 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -2,9 +2,15 @@ name: build on: push: + paths-ignore: + - "**.md" + - "logo/**" branches: - master pull_request: + paths-ignore: + - "**.md" + - "logo/**" branches: - master