Skip to content
This repository was archived by the owner on Feb 14, 2024. It is now read-only.

Commit 78787a9

Browse files
author
rfaircloth-splunk
committed
2 parents 9ac541b + 8fa8afa commit 78787a9

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ name: "Addon Factory Splunk Package Version"
1818
description: "Produce a version for Splunk packages compatible with splunkbase"
1919
runs:
2020
using: "docker"
21-
image: "docker://ghcr.io/splunk/addonfactory-get-splunk-package-version-action:v1.0.7"
21+
image: "docker://ghcr.io/splunk/addonfactory-get-splunk-package-version-action:v1.1.0"
2222
inputs:
2323
SemVer:
2424
description: Ouput of SEMVER step

entrypoint.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,16 @@
1616
# ########################################################################
1717

1818
SEMVER_REGEX='^v[0-9]+\.[0-9]+\.[0-9]+$'
19+
BETA_REGEX='^v[0-9]+\.[0-9]+\.[0-9]+-beta\.[0-9]+$'
1920
echo working with version $INPUT_SEMVER
21+
2022
if [[ $INPUT_SEMVER =~ $SEMVER_REGEX ]];
23+
2124
then
2225
echo using provided semver
2326
VERSION=$INPUT_SEMVER
27+
elif [[ $INPUT_SEMVER =~ $BETA_REGEX ]];
28+
VERSION=$(echo $INPUT_SEMVER | awk '{gsub("-beta\.", "B");print}')
2429
else
2530
if [[ $GITHUB_EVENT_NAME != 'pull_request' ]];
2631
then

0 commit comments

Comments
 (0)