From 99cb0f7ba5e238f7a6f4341ba11f589345602b0d Mon Sep 17 00:00:00 2001 From: Arun Date: Thu, 11 Jan 2024 16:56:28 -0800 Subject: [PATCH] ci: Use GITHUB_OUTPUT envvar instead of set-output command --- .github/workflows/build_bsd.yml | 2 +- .github/workflows/build_linux.yml | 2 +- .github/workflows/build_windows.yml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build_bsd.yml b/.github/workflows/build_bsd.yml index b4af2760..1c320df4 100644 --- a/.github/workflows/build_bsd.yml +++ b/.github/workflows/build_bsd.yml @@ -36,6 +36,6 @@ jobs: go get -u github.com/lesismal/nbio/... ulimit -n 30000 go env - echo "::set-output name=short_sha::$(git rev-parse --short HEAD)" + echo "short_sha=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT - name: go test run: go test -covermode=atomic -timeout 60s -coverprofile="./coverage" diff --git a/.github/workflows/build_linux.yml b/.github/workflows/build_linux.yml index ac2bf60e..58908f39 100644 --- a/.github/workflows/build_linux.yml +++ b/.github/workflows/build_linux.yml @@ -36,6 +36,6 @@ jobs: go get -u github.com/lesismal/nbio/... ulimit -n 30000 go env - echo "::set-output name=short_sha::$(git rev-parse --short HEAD)" + echo "short_sha=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT - name: go test run: go test -covermode=atomic -timeout 60s -coverprofile="./coverage" diff --git a/.github/workflows/build_windows.yml b/.github/workflows/build_windows.yml index d2839742..4f091e58 100644 --- a/.github/workflows/build_windows.yml +++ b/.github/workflows/build_windows.yml @@ -35,7 +35,7 @@ jobs: printf "\n\ngo environment:\n\n" go get -u github.com/lesismal/nbio/... go env - echo "::set-output name=short_sha::$(git rev-parse --short HEAD)" + echo "short_sha=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT - name: go test run: go test -covermode=atomic -timeout 60s -coverprofile="./coverage" - name: update code coverage report