From 22928e4885724b52e51036c3683634236c61b700 Mon Sep 17 00:00:00 2001 From: Arun Date: Thu, 11 Jan 2024 21:22:27 -0800 Subject: [PATCH] ci: Use GITHUB_OUTPUT envvar instead of set-output command --- .github/workflows/build.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index a3e7342..4934290 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -24,12 +24,12 @@ jobs: - name: Extract current branch name shell: bash # bash pattern expansion to grab branch name without slashes - run: ref="${GITHUB_REF#refs/heads/}" && echo "::set-output name=branch::${ref////-}" + run: ref="${GITHUB_REF#refs/heads/}" && echo "branch=${ref////-}" >> $GITHUB_OUTPUT id: ref - name: Set outputs id: vars - run: echo "::set-output name=sha_short::$(git rev-parse --short HEAD)" + run: echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT - name: Check outputs run: echo ${{ steps.vars.outputs.sha_short }}