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

Commit ba47dcf

Browse files
fix(docker): fix release names not flowing through
1 parent 6320994 commit ba47dcf

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

.github/workflows/sfpowerscripts-copy-docker.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,10 @@ jobs:
5454
- name: 'Get package version'
5555
run: |
5656
echo "PKG_VERSION=$(jq -r ".version" packages/sfpowerscripts-cli/package.json)" >> $GITHUB_ENV
57-
echo "RELEASE_VERSION=$(jq -r ".release" packages/sfpowerscripts-cli/package.json| read input; echo "$(cut -c1-3 <<< "$input")-$(cut -d' ' -f2 <<< "$input")" | tr '[:upper:]' '[:lower:]')" >> $GITHUB_ENV
57+
RELEASE_NAME=$(jq -r ".release" packages/sfpowerscripts-cli/package.json)
58+
RELEASE_NAME_AS_ARRAY=($RELEASE_NAME)
59+
RELEASE_NAME=$(echo ${RELEASE_NAME_AS_ARRAY[0]} | cut -c1-3)${RELEASE_NAME_AS_ARRAY[1]}
60+
echo "RELEASE_NAME=release-$RELEASE_NAME" >> $GITHUB_ENV
5861
5962
- name: 'Re expose secretes'
6063
run: |

.github/workflows/sfpowerscripts-promote-docker.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,10 @@ jobs:
3838
- name: 'Get package version'
3939
run: |
4040
echo "PKG_VERSION=$(jq -r ".version" packages/sfpowerscripts-cli/package.json)" >> $GITHUB_ENV
41-
echo "RELEASE_VERSION=$(jq -r ".release" packages/sfpowerscripts-cli/package.json| read input; echo "$(cut -c1-3 <<< "$input")-$(cut -d' ' -f2 <<< "$input")" | tr '[:upper:]' '[:lower:]')" >> $GITHUB_ENV
41+
RELEASE_NAME=$(jq -r ".release" packages/sfpowerscripts-cli/package.json)
42+
RELEASE_NAME_AS_ARRAY=($RELEASE_NAME)
43+
RELEASE_NAME=$(echo ${RELEASE_NAME_AS_ARRAY[0]} | cut -c1-3)${RELEASE_NAME_AS_ARRAY[1]}
44+
echo "RELEASE_NAME=release-$RELEASE_NAME" >> $GITHUB_ENV
4245
4346
4447
- name: 'Re expose secrets'

0 commit comments

Comments
 (0)