From 0f9ca6097b8e1a6ba257eaac5598694760b0b883 Mon Sep 17 00:00:00 2001 From: Jongwoo Han Date: Thu, 9 Mar 2023 14:57:46 +0900 Subject: [PATCH] change: replace deprecated set-output command with environment file in Github Actions (#1226) --- .github/workflows/docs.yml | 2 +- .github/workflows/release.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 61cfe4ab..b3d511c2 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -38,7 +38,7 @@ jobs: run: | git config --global user.name ghaction-k3d.io git config --global user.email ghaction@k3d.io - echo ::set-output name=tag::${GITHUB_REF#refs/tags/} + echo tag=${GITHUB_REF#refs/tags/} >> $GITHUB_OUTPUT - name: Build & Deploy with Mike (versioned) if: startsWith(github.ref, 'refs/tags/') run: | diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index c78ccb5e..8b02403c 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -214,7 +214,7 @@ jobs: - name: Extract Tag from Ref if: startsWith(github.ref, 'refs/tags/') id: tag - run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//} + run: echo VERSION=${GITHUB_REF/refs\/tags\//} >> $GITHUB_OUTPUT shell: bash - uses: apexskier/github-semver-parse@v1 if: startsWith(github.ref, 'refs/tags/')