Skip to content

Commit f63904b

Browse files
committed
Updates version within the chart
1 parent b0d38d2 commit f63904b

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

smoke-test/action.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,13 +66,18 @@ runs:
6666
id: update-chart-yaml
6767
uses: mikefarah/yq@master
6868
with:
69-
cmd: yq '.version = "${APP_VERSION}"' ${CHART_YAML}
69+
cmd: yq -i '.version = "${{ env.APP_VERSION }}"' ${CHART_YAML}
7070
- name: Update Chart Version
7171
id: update-chart-version
7272
shell: bash
7373
run: |
7474
tarball=$(find ${YAML_DIR} -name "${CHART_NAME}*.tgz")
75-
tar -uzvf ${tarball} ${CHART_YAML}
75+
gunzip ${tarball}
76+
tar -uvf ${tarball%tgz}.tar ${CHART_YAML}
77+
gzip ${tarball%tgz}.tar
78+
mv ${tarball%tgz}.tar.gz ${tarball}
79+
env:
80+
YAML_DIR: ${{ inputs.yaml-dir }}
7681
- name: 'Create Release'
7782
id: 'create-release'
7883
uses: replicatedhq/compatibility-actions/create-release@v0

0 commit comments

Comments
 (0)