ci_matrix: add label to skip livecheck_min_os audit (#142080)

* ci_matrix: add label to skip livecheck_min_os audit

* add rerun trigger
This commit is contained in:
Bevan Kay
2023-02-28 16:59:50 +08:00
committed by GitHub
parent f74a93b50f
commit ff5e31652b
2 changed files with 10 additions and 5 deletions
+3 -1
View File
@@ -27,6 +27,8 @@ jobs:
github.event.label.name == 'ci-skip-appcast' ||
github.event.label.name == 'ci-skip-install' ||
github.event.label.name == 'ci-skip-livecheck' ||
github.event.label.name == 'ci-skip-livecheck-min-os' ||
github.event.label.name == 'ci-skip-repository' ||
github.event.label.name == 'ci-syntax-only' ||
!github.event.label.name
)
@@ -38,5 +40,5 @@ jobs:
token: ${{ secrets.HOMEBREW_GITHUB_PUBLIC_REPO_TOKEN }}
once-label: ci-requeue
continuous-label: ci-retry
trigger-labels: ci-skip-appcast,ci-skip-install,ci-skip-livecheck,ci-syntax-only
trigger-labels: ci-skip-appcast,ci-skip-install,ci-skip-livecheck,ci-syntax-only,ci-skip-repository,ci-skip-livecheck-min-os
workflow: ci.yml
+7 -4
View File
@@ -113,10 +113,6 @@ module CiMatrix
audit_args << "--new-cask" if changed_files[:added_files].include?(path)
audit_exceptions = []
if labels.include?("ci-skip-repository")
audit_exceptions << ["github_repository", "gitlab_repository",
"bitbucket_repository"]
end
# TODO: Replace with `except`.
audit_args << if labels.include?("ci-skip-appcast")
@@ -129,6 +125,13 @@ module CiMatrix
audit_exceptions << ["hosting_with_livecheck", "livecheck_version", "livecheck_min_os"]
end
audit_exceptions << "livecheck_min_os" if labels.include?("ci-skip-livecheck-min-os")
if labels.include?("ci-skip-repository")
audit_exceptions << ["github_repository", "gitlab_repository",
"bitbucket_repository"]
end
audit_args << "--except" << audit_exceptions.join(",") if audit_exceptions.any?
runners(path).map do |runner|