Skip to content

Commit d023b5f

Browse files
Merge pull request #51 from edenlabllc/feature/FFS-50-refactor-tenant-artifactciaction
refactor code
2 parents 4df096b + 4efcb9c commit d023b5f

7 files changed

Lines changed: 308 additions & 397 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: v2
11+
VERSION: v3
1212

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

README.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ It supports SemVer-based artifact versioning, RMK integration, Slack notificatio
1818
- Attach `project.yaml` to the release (if exists)
1919
- Trigger `workflow_dispatch` in tenant bootstrap repos with updated versions
2020
- Optional Slack notifications with release context
21-
- RMK version check and installation
2221
- GitHub-native, lightweight, and composable
2322

2423
## When to use
@@ -55,7 +54,6 @@ jobs:
5554
github_token_repo_full_access: ${{ secrets.GH_TOKEN_REPO_FULL_ACCESS }}
5655
autotag: true
5756
push_tag: true
58-
rmk_version: v0.45.0
5957
update_tenant_environments: |
6058
kodjin=staging
6159
kodjin=production

action.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,21 +9,22 @@ inputs:
99
description: Enable auto tagging when merging into target branch.
1010
required: false
1111
default: false
12-
custom_tenant_name:
13-
description: Custom tenant name for different client repo.
14-
required: false
1512
github_token_repo_full_access:
1613
description: GitHub token with full access permissions to repositories.
1714
required: true
1815
default: ""
16+
major_version_branch:
17+
description: |
18+
Name of the base branch for publishing hotfixes to a specific major version line.
19+
Use this if you need to release a hotfix for an older major version, instead of the default branch (e.g., master).
20+
Example:
21+
projectname-v4
22+
required: false
23+
default: ""
1924
push_tag:
2025
description: Manual push a tag from the current branch.
2126
required: false
2227
default: false
23-
rmk_version:
24-
description: RMK version.
25-
required: false
26-
default: latest
2728
slack_notifications:
2829
description: Enable Slack notifications.
2930
required: false
@@ -77,10 +78,9 @@ runs:
7778
env:
7879
INPUT_ARTIFACT_VERSION: ${{ inputs.artifact_version }}
7980
INPUT_AUTOTAG: ${{ inputs.autotag }}
80-
INPUT_CUSTOM_TENANT_NAME: ${{ inputs.custom_tenant_name }}
8181
INPUT_GITHUB_TOKEN_REPO_FULL_ACCESS: ${{ inputs.github_token_repo_full_access }}
82+
INPUT_MAJOR_VERSION_BRANCH: ${{ inputs.major_version_branch }}
8283
INPUT_PUSH_TAG: ${{ inputs.push_tag }}
83-
INPUT_RMK_VERSION: ${{ inputs.rmk_version }}
8484
INPUT_SLACK_NOTIFICATIONS: ${{ inputs.slack_notifications }}
8585
INPUT_SLACK_WEBHOOK: ${{ inputs.slack_webhook }}
8686
INPUT_SLACK_MESSAGE_RELEASE_NOTES_PATH: ${{ inputs.slack_message_release_notes_path }}

0 commit comments

Comments
 (0)