dev(ci): read scopes from local modules/docs

Instead of (only) reading the workflow's internal doomemacs install.

Amend: 0f6a653a13
This commit is contained in:
Henrik Lissner 2022-05-04 22:54:41 +02:00
parent 47d1b82382
commit ab138c0b32
No known key found for this signature in database
GPG key ID: B60957CA074D39A3

5
.github/ci.el vendored
View file

@ -22,7 +22,8 @@
#'doom-glob (if (string-prefix-p ":" scope)
(format "%s" (substring scope 1))
(format "*/%s" scope)))
doom-modules-dirs))
(list (doom-dir (dir!) "../modules/")
(doom-dir doom-private-dir "modules/"))))
(cl-defun ci-docs-scope (scope (&key type))
"Allow any filename in docs/* as a scope for docs commits."
@ -30,6 +31,6 @@
(member scope
(cons "install"
(mapcar #'file-name-base
(doom-glob doom-docs-dir "*.org"))))))
(doom-glob (dir!) "../docs/*.org"))))))
;;; ci.el ends here