Browse Source

chore: replace deprecated command with environment file (#2970)

Signed-off-by: Jongwoo Han <jongwooo.han@gmail.com>
Jongwoo Han 2 years ago
parent
commit
fa591d7674

+ 3 - 3
.github/actions/e2e-managed/action.yml

@@ -46,8 +46,8 @@ runs:
       id: go
       shell: bash
       run: |
-        echo "::set-output name=build-cache::$(go env GOCACHE)"
-        echo "::set-output name=mod-cache::$(go env GOMODCACHE)"
+        echo "build-cache=$(go env GOCACHE)" >> $GITHUB_OUTPUT
+        echo "mod-cache=$(go env GOMODCACHE)" >> $GITHUB_OUTPUT
 
     - name: Cache the Go Build Cache
       uses: actions/cache@v3
@@ -135,7 +135,7 @@ runs:
       if: env.CLOUD_PROVIDER == 'aws'
       run: |-
         aws --region $AWS_REGION eks update-kubeconfig --name $AWS_CLUSTER_NAME
-    
+
     - name: Get AKS credentials
       if: env.CLOUD_PROVIDER == 'azure'
       shell: bash

+ 2 - 2
.github/actions/e2e/action.yml

@@ -20,8 +20,8 @@ runs:
       id: go
       shell: bash
       run: |
-        echo "::set-output name=build-cache::$(go env GOCACHE)"
-        echo "::set-output name=mod-cache::$(go env GOMODCACHE)"
+        echo "build-cache=$(go env GOCACHE)" >> $GITHUB_OUTPUT
+        echo "mod-cache=$(go env GOMODCACHE)" >> $GITHUB_OUTPUT
 
     - name: Cache the Go Build Cache
       uses: actions/cache@v3

+ 1 - 1
.github/actions/sign/action.yml

@@ -57,7 +57,7 @@ runs:
     - name: Get docker image tag
       id: container_info
       shell: bash
-      run: echo "::set-output name=digest::$(crane digest ${{ inputs.image-name }}:${{ inputs.image-tag }})"
+      run: echo "digest=$(crane digest ${{ inputs.image-name }}:${{ inputs.image-tag }})" >> $GITHUB_OUTPUT
 
     - name: Sign image
       shell: bash

+ 1 - 1
.github/workflows/helm.yml

@@ -43,7 +43,7 @@ jobs:
         run: |
           changed=$(ct list-changed --config=.github/ci/ct.yaml)
           if [[ -n "$changed" ]]; then
-            echo "::set-output name=changed::true"
+            echo "changed=true" >> $GITHUB_OUTPUT
           fi
       - name: Install chart unittest
         run: |

+ 1 - 1
.github/workflows/publish.yml

@@ -103,7 +103,7 @@ jobs:
           else
             TAG=$(make docker.tag)
           fi
-          echo "::set-output name=image-tag::${TAG}"
+          echo "image-tag=${TAG}" >> $GITHUB_OUTPUT
 
       - name: Build & Publish Artifacts
         if: env.IS_FORK == 'false'