This repository was archived by the owner on Feb 14, 2024. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ name: "Addon Factory Splunk Package Version"
1818description : " Produce a version for Splunk packages compatible with splunkbase"
1919runs :
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 "
2222inputs :
2323 SemVer :
2424 description : Ouput of SEMVER step
Original file line number Diff line number Diff line change 1616# ########################################################################
1717
1818SEMVER_REGEX=' ^v[0-9]+\.[0-9]+\.[0-9]+$'
19+ BETA_REGEX=' ^v[0-9]+\.[0-9]+\.[0-9]+-beta\.[0-9]+$'
1920echo working with version $INPUT_SEMVER
21+
2022if [[ $INPUT_SEMVER =~ $SEMVER_REGEX ]];
23+
2124then
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}' )
2429else
2530 if [[ $GITHUB_EVENT_NAME != ' pull_request' ]];
2631 then
You can’t perform that action at this time.
0 commit comments