Skip to content

Commit

Permalink
fix(cicd): update to use version from package.json
Browse files Browse the repository at this point in the history
  • Loading branch information
azlam committed Jun 30, 2024
1 parent 35caa34 commit 37aae9d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/sfp-copy-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ jobs:

- name: 'Get package version'
run: |
echo "PKG_VERSION=$(jq -r ".version" packages/sfp-cli/package.json)" >> $GITHUB_ENV
RELEASE_NAME=$(jq -r ".release" packages/sfp-cli/package.json)
echo "PKG_VERSION=$(jq -r ".version" package.json)" >> $GITHUB_ENV
RELEASE_NAME=$(jq -r ".release" package.json)
RELEASE_NAME_AS_ARRAY=($RELEASE_NAME)
RELEASE_NAME=$(echo ${RELEASE_NAME_AS_ARRAY[0]} | cut -c1-3)${RELEASE_NAME_AS_ARRAY[1]}
echo "RELEASE_NAME=release-$RELEASE_NAME" >> $GITHUB_ENV
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/sfp-promote-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ jobs:

- name: 'Get package version'
run: |
echo "PKG_VERSION=$(jq -r ".version" packages/sfp-cli/package.json)" >> $GITHUB_ENV
RELEASE_NAME=$(jq -r ".release" packages/sfp-cli/package.json)
echo "PKG_VERSION=$(jq -r ".version" package.json)" >> $GITHUB_ENV
RELEASE_NAME=$(jq -r ".release" package.json)
RELEASE_NAME_AS_ARRAY=($RELEASE_NAME)
RELEASE_NAME=$(echo ${RELEASE_NAME_AS_ARRAY[0]} | cut -c1-3)${RELEASE_NAME_AS_ARRAY[1]}
echo "RELEASE_NAME=release-$RELEASE_NAME" >> $GITHUB_ENV
Expand Down

0 comments on commit 37aae9d

Please sign in to comment.