From 28fa6e494fb3e79e9461bf6153ae715b92389307 Mon Sep 17 00:00:00 2001 From: Christopher Redwine Date: Tue, 7 Mar 2023 15:29:32 -0600 Subject: [PATCH] Upgrade deprecated set-output GitHub Actions syntax to avoid warnings (#1314) Co-authored-by: M. Mert Yildiran --- .github/workflows/release.yml | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 57fac45a7..8ad2d7369 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -26,9 +26,11 @@ jobs: id: version shell: bash run: | - echo "##[set-output name=tag;]$(echo ${GITHUB_REF#refs/*/})" - echo "##[set-output name=build_timestamp;]$(echo $(date +%s))" - echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})" + { + echo "tag=${GITHUB_REF#refs/*/}" + echo "build_timestamp=$(date +%s)" + echo "branch=${GITHUB_REF#refs/heads/}" + } >> "$GITHUB_OUTPUT" - name: Build run: make build-all VER='${{ steps.version.outputs.tag }}' BUILD_TIMESTAMP='${{ steps.version.outputs.build_timestamp }}' @@ -61,9 +63,11 @@ jobs: id: version shell: bash run: | - echo "##[set-output name=tag;]$(echo ${GITHUB_REF#refs/*/})" - echo "##[set-output name=build_timestamp;]$(echo $(date +%s))" - echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})" + { + echo "tag=${GITHUB_REF#refs/*/}" + echo "build_timestamp=$(date +%s)" + echo "branch=${GITHUB_REF#refs/heads/}" + } >> "$GITHUB_OUTPUT" - name: Fetch all tags run: git fetch --force --tags