ci: skip "docs" folder as part of get_changed_packages test
Signed-off-by: Pablo Correa Gómez <pabloyoyoista@postmarketos.org> Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/7881>
This commit is contained in:
parent
cd91997729
commit
ee7c30c4f6
1 changed files with 8 additions and 1 deletions
|
|
@ -139,7 +139,14 @@ def get_changed_packages(skip_archived: bool = False):
|
|||
# Skip files:
|
||||
# * in the root dir of pmaports (e.g. README.md)
|
||||
# * path with a dot (e.g. .ci/, device/.shared-patches/)
|
||||
if not dirname or file.startswith(".") or "/." in file or skip_archived and dirname.startswith("device/archived"):
|
||||
# * documentation
|
||||
if (
|
||||
not dirname
|
||||
or file.startswith(".")
|
||||
or "/." in file
|
||||
or skip_archived and dirname.startswith("device/archived")
|
||||
or dirname == "docs"
|
||||
):
|
||||
continue
|
||||
|
||||
if filename != "APKBUILD":
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue