From cd50c40e9616451c62e4f3b6ba0d1520959c6f93 Mon Sep 17 00:00:00 2001 From: Jongwoo Han Date: Sun, 17 Dec 2023 03:03:47 +0900 Subject: [PATCH] Chore: replace deprecated command with environment file Signed-off-by: Jongwoo Han --- .github/workflows/auto-release.yaml | 2 +- .github/workflows/e2e-test.yaml | 5 +++-- .github/workflows/release.yml | 5 +++-- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/.github/workflows/auto-release.yaml b/.github/workflows/auto-release.yaml index aaa8f2c..18e8338 100644 --- a/.github/workflows/auto-release.yaml +++ b/.github/workflows/auto-release.yaml @@ -22,7 +22,7 @@ jobs: id: auto-version run: | version="$(~/auto version)" - echo "::set-output name=version::$version" + echo "version=$version" >> $GITHUB_OUTPUT env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: auto release diff --git a/.github/workflows/e2e-test.yaml b/.github/workflows/e2e-test.yaml index c82e5e4..1420447 100644 --- a/.github/workflows/e2e-test.yaml +++ b/.github/workflows/e2e-test.yaml @@ -29,10 +29,11 @@ jobs: go-version: "1.20.5" - name: Get matrix id: get_matrix + shell: bash run: | TARGETS=${{matrix.TARGETS}} - echo ::set-output name=OS::${TARGETS%/*} - echo ::set-output name=ARCH::${TARGETS#*/} + echo "OS=${TARGETS%/*}" >> $GITHUB_OUTPUT + echo "ARCH=${TARGETS#*/}" >> $GITHUB_OUTPUT - name: Build run: | make ${{ steps.get_matrix.outputs.OS }}-${{ steps.get_matrix.outputs.ARCH }} diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 4d79d0f..8dbecb7 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -48,10 +48,11 @@ jobs: echo "VELA_SHA_SHORT=$VELA_SHA_SHORT" >> $GITHUB_ENV - name: Get matrix id: get_matrix + shell: bash run: | TARGETS=${{matrix.TARGETS}} - echo ::set-output name=OS::${TARGETS%/*} - echo ::set-output name=ARCH::${TARGETS#*/} + echo "OS=${TARGETS%/*}" >> $GITHUB_OUTPUT + echo "ARCH=${TARGETS#*/}" >> $GITHUB_OUTPUT - name: Get ldflags id: get_ldflags run: |