From a5fdcb46c8377cbf9f05a8127e6c21c6570da95e Mon Sep 17 00:00:00 2001 From: Jongwoo Han Date: Mon, 27 Nov 2023 10:35:00 +0900 Subject: [PATCH] Replace deprecated command with environment file Signed-off-by: Jongwoo Han --- .github/workflows/on-safe-to-test-label.yml | 5 +++-- .github/workflows/sync.yml | 6 +++--- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/workflows/on-safe-to-test-label.yml b/.github/workflows/on-safe-to-test-label.yml index d499d524..903bebd4 100644 --- a/.github/workflows/on-safe-to-test-label.yml +++ b/.github/workflows/on-safe-to-test-label.yml @@ -92,9 +92,10 @@ jobs: echo PATH=$PATH >> $GITHUB_ENV - name: Setup Cache variables id: go-cache-paths + shell: bash run: | - echo "::set-output name=go-build::${{ env.GOCACHE }}" - echo "::set-output name=go-mod::${{ env.GOMODCACHE }}" + echo "go-build=${{ env.GOCACHE }}" >> $GITHUB_OUTPUT + echo "go-mod=${{ env.GOMODCACHE }}" >> $GITHUB_OUTPUT - name: Go-Build Cache # Cache go build cache, used to speedup go test uses: actions/cache@v3 with: diff --git a/.github/workflows/sync.yml b/.github/workflows/sync.yml index adaccc0a..a4b601ed 100644 --- a/.github/workflows/sync.yml +++ b/.github/workflows/sync.yml @@ -71,11 +71,11 @@ jobs: changed_charts=$( (echo $FILES | grep -q -E "${CHARTS_DIR}/[[:graph:]]*\.yaml" && echo true) || echo false ) if $changed_config && ! $changed_charts; then - echo "::set-output name=result::config" + echo "result=config" >> $GITHUB_OUTPUT elif $changed_charts && ! $changed_config; then - echo "::set-output name=result::charts" + echo "result=charts" >> $GITHUB_OUTPUT else - echo "::set-output name=result::both" + echo "result=both" >> $GITHUB_OUTPUT fi - name: Copy changed config CRDs to chart