Feature/workspace local #1
@@ -15,6 +15,10 @@ on:
|
||||
required: true
|
||||
type: string
|
||||
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:
|
||||
contents: write
|
||||
@@ -50,17 +54,17 @@ jobs:
|
||||
fi
|
||||
|
||||
IFS='.' read -r major minor patch <<< "$version"
|
||||
release_tag="${{ inputs.action-name }}/v${version}"
|
||||
rolling_minor_tag="${{ inputs.action-name }}/v${major}.${minor}"
|
||||
rolling_major_tag="${{ inputs.action-name }}/v${major}"
|
||||
release_tag="${{ inputs.prefix }}/v${version}"
|
||||
rolling_minor_tag="${{ inputs.prefix }}/v${major}.${minor}"
|
||||
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"
|
||||
should_publish="true"
|
||||
|
||||
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
|
||||
should_publish="false"
|
||||
|
||||
@@ -16,4 +16,5 @@ jobs:
|
||||
with:
|
||||
action-directory: github-actions/bundle-script
|
||||
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:
|
||||
action-directory: github-actions/install-lua-addon
|
||||
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