Only run target specific CI jobs on matching branches/tags

parent 408ece4b
......@@ -170,7 +170,7 @@ time_warp_avadanlik:
# Create per book jobs in the CI config
define ci_setup ?=
yq -M -s -y -e --arg sources "$(strip $(SOURCES))" \
'. + ($$sources | [splits(" ") as $$target | { ($$target + ".pdfs") : { "extends": ".pdfs", "artifacts": { "paths": [($$target + "*")] } }}]) | add'
'. + ($$sources | [splits(" ") as $$target | { ($$target + ".pdfs") : { "extends": ".pdfs", "only": [ "master", ("/^"+$$target+"\\/.*/") ], "artifacts": { "paths": [($$target+"*")] } }}]) | add'
endef
pre_sync = $(sync_nextcloud)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment