updated prefix for tag
This commit is contained in:
@@ -15,6 +15,10 @@ on:
|
|||||||
required: true
|
required: true
|
||||||
type: string
|
type: string
|
||||||
description: 'Name of the action for display purposes'
|
description: 'Name of the action for display purposes'
|
||||||
|
prefix:
|
||||||
|
required: true
|
||||||
|
type: string
|
||||||
|
description: 'Prefix for version tags (e.g., bundle-script will create tags like bundle-script/v1.0.0)'
|
||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
contents: write
|
contents: write
|
||||||
@@ -50,17 +54,17 @@ jobs:
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
IFS='.' read -r major minor patch <<< "$version"
|
IFS='.' read -r major minor patch <<< "$version"
|
||||||
release_tag="${{ inputs.action-name }}/v${version}"
|
release_tag="${{ inputs.prefix }}/v${version}"
|
||||||
rolling_minor_tag="${{ inputs.action-name }}/v${major}.${minor}"
|
rolling_minor_tag="${{ inputs.prefix }}/v${major}.${minor}"
|
||||||
rolling_major_tag="${{ inputs.action-name }}/v${major}"
|
rolling_major_tag="${{ inputs.prefix }}/v${major}"
|
||||||
|
|
||||||
latest_release_tag=$(git tag --list '${{ inputs.action-name }}/v*.*.*' --sort=-version:refname | head -n 1)
|
latest_release_tag=$(git tag --list '${{ inputs.prefix }}/v*.*.*' --sort=-version:refname | head -n 1)
|
||||||
|
|
||||||
bump_kind="initial"
|
bump_kind="initial"
|
||||||
should_publish="true"
|
should_publish="true"
|
||||||
|
|
||||||
if [[ -n "$latest_release_tag" ]]; then
|
if [[ -n "$latest_release_tag" ]]; then
|
||||||
latest_version=${latest_release_tag#${{ inputs.action-name }}/v}
|
latest_version=${latest_release_tag#${{ inputs.prefix }}/v}
|
||||||
|
|
||||||
if [[ "$version" == "$latest_version" ]]; then
|
if [[ "$version" == "$latest_version" ]]; then
|
||||||
should_publish="false"
|
should_publish="false"
|
||||||
|
|||||||
@@ -16,4 +16,5 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
action-directory: github-actions/bundle-script
|
action-directory: github-actions/bundle-script
|
||||||
package-json-path: github-actions/bundle-script/package.json
|
package-json-path: github-actions/bundle-script/package.json
|
||||||
action-name: bundle-script
|
action-name: Bundle Script
|
||||||
|
prefix: bundle-script
|
||||||
|
|||||||
@@ -16,4 +16,5 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
action-directory: github-actions/install-lua-addon
|
action-directory: github-actions/install-lua-addon
|
||||||
package-json-path: github-actions/install-lua-addon/package.json
|
package-json-path: github-actions/install-lua-addon/package.json
|
||||||
action-name: install-lua-addon
|
action-name: Install Lua Addon
|
||||||
|
prefix: install-lua-addon
|
||||||
|
|||||||
Reference in New Issue
Block a user