skip logo paths and in actions (#1311)

* skip logo paths and in actions

* [skip ci] Keep CI happy
This commit is contained in:
Rahuλ Dé 2022-07-04 07:43:56 +01:00 committed by GitHub
parent 7b10adc69a
commit e7c504b331
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 13 additions and 2 deletions

View file

@ -223,7 +223,8 @@ java -jar \"$jar\" --config .build/bb.edn --deps-root . release-artifact \"$refl
:requires ["linux" "linux-static" "linux-aarch64"]}}]})))) :requires ["linux" "linux-static" "linux-aarch64"]}}]}))))
(def skip-config (def skip-config
{:skip-if-only [#".*.md$"]}) {:skip-if-only [#".*.md$"
#"^logo\/.*$"]})
(defn get-changes (defn get-changes
[] []
@ -253,9 +254,11 @@ java -jar \"$jar\" --config .build/bb.edn --deps-root . release-artifact \"$refl
(comment (comment
(main) (main)
(def regexes (def regexes
[#".*.md$" [#".*.md$"
#".*.clj$"]) ; ignore clojure files #".*.clj$" ; ignore clojure files
#"^logo\/.*$"])
(:out (tasks/shell {:out :string} "ls")) (: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 #".*.clj$" "src/file.clj.dfff")
(re-matches #"^logo\/.*$" "logo/foo/bar.jpg")
(relevant? ["src/file.clj"] regexes)) (relevant? ["src/file.clj"] regexes))

View file

@ -2,9 +2,15 @@ name: build
on: on:
push: push:
paths-ignore:
- "**.md"
- "logo/**"
branches: branches:
- master - master
pull_request: pull_request:
paths-ignore:
- "**.md"
- "logo/**"
branches: branches:
- master - master