Skip to content

Commit 907b249

Browse files
author
github-actions
committed
extend version validation for numbered RCs
1 parent 4081983 commit 907b249

5 files changed

Lines changed: 6 additions & 6 deletions

File tree

.github/workflows/core.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88

99
env:
1010
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
11-
VERSION: v3
11+
VERSION: v4
1212

1313
jobs:
1414
release-tenant-artifact-action:

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ jobs:
4949
fetch-depth: 0
5050

5151
- name: Run Tenant Artifact CI Action
52-
uses: edenlabllc/tenant.artifact.ci.action@v1
52+
uses: edenlabllc/tenant.artifact.ci.action@v4
5353
with:
5454
github_token_repo_full_access: ${{ secrets.GH_TOKEN_REPO_FULL_ACCESS }}
5555
autotag: true

examples/tenant-artifact-auto.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
fetch-depth: 0
2525

2626
- name: Create and upload tenant Artifact
27-
uses: edenlabllc/tenant-artifact.ci.action@v3
27+
uses: edenlabllc/tenant-artifact.ci.action@v4
2828
with:
2929
autotag: true
3030
github_token_repo_full_access: ${{ secrets.GH_TOKEN_REPO_FULL_ACCESS }}

examples/tenant-artifact-manual.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
fetch-depth: 0
3232

3333
- name: Create and upload tenant Artifact
34-
uses: edenlabllc/tenant-artifact.ci.action@v3
34+
uses: edenlabllc/tenant-artifact.ci.action@v4
3535
with:
3636
artifact_version: ${{ github.event.inputs.artifact_version }}
3737
github_token_repo_full_access: ${{ secrets.GH_TOKEN_REPO_FULL_ACCESS }}

src/actions/github_project_manager.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ def __init__(self, args: Namespace, github_context: GitHubContext):
2727
if self.git_branch == (self.args.major_version_branch or "").strip():
2828
self.VERSION_REGEX = fr"v\d+\.\d+\.\d+-{self.args.major_version_branch}$"
2929
else:
30-
self.VERSION_REGEX = r"v\d+\.\d+\.\d+(?:-rc)?$"
30+
self.VERSION_REGEX = r"v\d+\.\d+\.\d+(?:-rc(?:\.\d+)?)?$"
3131

3232
''' Validate major version branch format if provided '''
3333
if (self.args.major_version_branch or "").strip():
@@ -134,7 +134,7 @@ def _handle_master_branch(self):
134134
if not match:
135135
err_message = (f"Invalid commit message for branch '{self.git_branch}'.\n"
136136
f"Expected formats:\n"
137-
f"- release|hotfix/vX.Y.Z|vX.Y.Z-rc")
137+
f"- release|hotfix/vX.Y.Z|vX.Y.Z-rc|vX.Y.Z-rc.N")
138138
if (self.args.major_version_branch or "").strip():
139139
raise ValueError(err_message +
140140
f"\n- {self.args.major_version_branch}: release|hotfix/vX.Y.Z-{self.args.major_version_branch}"

0 commit comments

Comments
 (0)