Skip to content

Commit

Permalink
fix VERSION env var assignment
Browse files Browse the repository at this point in the history
  • Loading branch information
robertlincecum committed Mar 4, 2024
1 parent 9c182b8 commit 222d263
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/cut-release-common.yml
Original file line number Diff line number Diff line change
Expand Up @@ -160,8 +160,8 @@ jobs:
if: ${{ inputs.update_version }}
run: |
jq --arg new_version "v$(semver -i patch $(jq -r '.version' package.json | sed 's/^v//'))" '.version = $new_version' package.json > temp.json && mv temp.json package.json
NEW_VERSION = $(jq -r '.version' package.json)
echo "VERSION=$NEW_VERSION" >> $GITHUB_ENV
NEW_VERSION=$(jq -r '.version' package.json)
echo "VERSION=$NEW_VERSION" >> $GITHUB_ENV
- name: Update Chart.yaml version
run: yq eval -P -i ".appVersion=\"${{ env.VERSION }}\"" ./helm/Chart.yaml
Expand Down Expand Up @@ -207,8 +207,8 @@ jobs:
if: ${{ inputs.update_version }}
run: |
jq --arg new_version "v$(semver -i minor $(jq -r '.version' package.json | sed 's/^v//;s/-pre$//'))-pre" '.version = $new_version' package.json > temp.json && mv temp.json package.json
NEW_VERSION = $(jq -r '.version' package.json)
echo "VERSION=$NEW_VERSION" >> $GITHUB_ENV
NEW_VERSION=$(jq -r '.version' package.json)
echo "VERSION=$NEW_VERSION" >> $GITHUB_ENV
- name: Sync package-lock.json
run: npm i --package-lock-only --ignore-scripts
Expand Down Expand Up @@ -274,8 +274,8 @@ jobs:
if: ${{ inputs.update_version }}
run: |
jq --arg new_version "v$(semver -i patch $(jq -r '.version' package.json | sed 's/^v//'))" '.version = $new_version' package.json > temp.json && mv temp.json package.json
NEW_VERSION = $(jq -r '.version' package.json)
echo "VERSION=$NEW_VERSION" >> $GITHUB_ENV
NEW_VERSION=$(jq -r '.version' package.json)
echo "VERSION=$NEW_VERSION" >> $GITHUB_ENV
- name: Update Chart.yaml version
run: yq eval -P -i ".appVersion=\"${{ env.VERSION }}\"" ./helm/Chart.yaml
Expand Down Expand Up @@ -321,8 +321,8 @@ jobs:
if: ${{ inputs.update_version }}
run: |
jq --arg new_version "v$(semver -i minor $(jq -r '.version' package.json | sed 's/^v//;s/-pre$//'))-pre" '.version = $new_version' package.json > temp.json && mv temp.json package.json
NEW_VERSION = $(jq -r '.version' package.json)
echo "VERSION=$NEW_VERSION" >> $GITHUB_ENV
NEW_VERSION=$(jq -r '.version' package.json)
echo "VERSION=$NEW_VERSION" >> $GITHUB_ENV
- name: Sync package-lock.json
run: npm i --package-lock-only --ignore-scripts
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/deploy-prod-common.yml
Original file line number Diff line number Diff line change
Expand Up @@ -157,8 +157,8 @@ jobs:
if: ${{ inputs.update_version }}
run: |
jq --arg new_version "v$(semver -i patch $(jq -r '.version' package.json | sed 's/^v//'))" '.version = $new_version' package.json > temp.json && mv temp.json package.json
NEW_VERSION = $(jq -r '.version' package.json)
echo "VERSION=$NEW_VERSION" >> $GITHUB_ENV
NEW_VERSION=$(jq -r '.version' package.json)
echo "VERSION=$NEW_VERSION" >> $GITHUB_ENV
- name: Update Chart.yaml version
run: yq eval -i ".appVersion=\"${{ env.VERSION }}\"" ./helm/Chart.yaml
Expand Down Expand Up @@ -224,8 +224,8 @@ jobs:
if: ${{ inputs.update_version }}
run: |
jq --arg new_version "v$(semver -i patch $(jq -r '.version' package.json | sed 's/^v//'))" '.version = $new_version' package.json > temp.json && mv temp.json package.json
NEW_VERSION = $(jq -r '.version' package.json)
echo "VERSION=$NEW_VERSION" >> $GITHUB_ENV
NEW_VERSION=$(jq -r '.version' package.json)
echo "VERSION=$NEW_VERSION" >> $GITHUB_ENV
- name: Update Chart.yaml version
run: yq eval -i ".appVersion=\"${{ env.VERSION }}\"" ./helm/Chart.yaml
Expand Down

0 comments on commit 222d263

Please sign in to comment.