ci: leave tag protection review with the maintainer
This commit was merged in pull request #8.
This commit is contained in:
1 parent
c03a8d9d98
commit
ecf23d0507
2 files changed
+6
-9
No files matched your search
@@ -4,7 +4,6 @@
|
||||
from __future__ import annotations
|
||||
|
||||
import argparse
|
||||
import fnmatch
|
||||
import hashlib
|
||||
import json
|
||||
import os
|
||||
@@ -136,9 +135,6 @@ def candidate(service, tag, pipeline, paths, *, publish):
|
||||
require(actor["login"] == "marqdo-publisher" and actor.get("is_admin") is False,
|
||||
"publication requires the non-admin publisher account")
|
||||
require(branch_info["protected"] is True, "default branch must be protected")
|
||||
rules = service.json(f"/repos/{REPO}/tag_protections")
|
||||
require(any(fnmatch.fnmatchcase(tag, rule["name_pattern"]) for rule in rules),
|
||||
"tag requires an applicable protection rule")
|
||||
ci = ready_ci(service, head, pipeline, repository)
|
||||
|
||||
archive = paths[0]
|
||||
|
||||
Reference in new issue
Block a user