Skip to content

Commit

Permalink
Update branch filter regex
Browse files Browse the repository at this point in the history
We intend to publish snaps for pre-release branches, which have
the following format: auotupdate/v1.33.0-alpha.0.

In order to do so, we need to update the "TIP_BRANCH" regex, which
is used to filter branches.

We'll need to clarify what "TIP_BRANCH" means and add an inline
comment.
  • Loading branch information
petrutlucian94 committed Dec 19, 2024
1 parent a75eb74 commit 43c945c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/util/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
LOG = logging.getLogger(__name__)
SNAP_NAME: str = "k8s"
SNAP_REPO: str = "https://github.com/canonical/k8s-snap.git/"
TIP_BRANCH = re.compile(r"^(?:main)|^(?:release-\d+\.\d+)$")
TIP_BRANCH = re.compile(r"^(?:main)|^(?:release-\d+\.\d+)$|^(?:autoupdate\/v\d+\.\d+\.\d+-(?:alpha|beta|rc).\d+)$")


def flavors(dir: str) -> list[str]:
Expand Down

0 comments on commit 43c945c

Please sign in to comment.