From 4e64e6bbaf0110116eeb5b1f790ab5e6435f2d28 Mon Sep 17 00:00:00 2001 From: Chen Wang Date: Mon, 5 Feb 2024 13:54:37 -0600 Subject: [PATCH] use env to replace set output which will be deprecated soon --- .github/workflows/helm-release.yaml | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/.github/workflows/helm-release.yaml b/.github/workflows/helm-release.yaml index 005e46425..b7e510f43 100644 --- a/.github/workflows/helm-release.yaml +++ b/.github/workflows/helm-release.yaml @@ -44,11 +44,8 @@ jobs: changelog="${changelog//'%'/'%25'}" changelog="${changelog//$'\n'/'%0A'}" changelog="${changelog//$'\r'/'%0D'}" - echo "::set-output name=version::$version" - echo "::set-output name=changelog::$changelog" - - - name: run helm template - run: helm template . + echo "$version=${$version}" >> $GITHUB_ENV + echo "$changelog=${$changelog}" >> $GITHUB_ENV - name: Print Github Info run: | @@ -56,6 +53,9 @@ jobs: echo "github.repository: ${{ github.repository }}" echo "github.ref: ${{ github.ref }}" + - name: run helm template + run: helm template . + - name: Publish to NCSA OpenSource if: | github.event_name != 'pull_request' @@ -77,9 +77,9 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: - tag_name: ${{ steps.release_info.outputs.version }} - release_name: Release ${{ steps.release_info.outputs.version }} - body: ${{ steps.release_info.outputs.changelog }} + tag_name: ${{ env.version }} + release_name: Release ${{ env.version }} + body: ${{ env.changelog }} - name: Upload Release Asset if: github.event_name != 'pull_request' && github.repository == env.MAIN_REPO @@ -89,6 +89,6 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: upload_url: ${{ steps.create_release.outputs.upload_url }} - asset_path: ./incore-${{ steps.release_info.outputs.version }}.tgz - asset_name: incore-${{ steps.release_info.outputs.version }}.tgz + asset_path: ./incore-${{ env.version }}.tgz + asset_name: incore-${{ env.version }}.tgz asset_content_type: application/zip