From d0f15d54ab5a65425687fa0bd3bf69d8591a42d2 Mon Sep 17 00:00:00 2001 From: extrawurst Date: Sat, 9 Sep 2023 11:20:19 +0200 Subject: [PATCH] fix github action warnings using set-output see https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/ --- .github/workflows/cd.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index 6b317429..da36d773 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -18,7 +18,7 @@ jobs: - name: Get version id: get_version - run: echo ::set-output name=version::${GITHUB_REF/refs\/tags\//} + run: echo "version=${GITHUB_REF/refs\/tags\//}" >> $GITHUB_OUTPUT - name: Restore cargo cache uses: Swatinem/rust-cache@v2 @@ -83,7 +83,7 @@ jobs: if: matrix.os == 'macos-latest' id: shasum run: | - echo ::set-output name=sha::"$(shasum -a 256 ./release/gitui-mac.tar.gz | awk '{printf $1}')" + echo sha="$(shasum -a 256 ./release/gitui-mac.tar.gz | awk '{printf $1}')" >> $GITHUB_OUTPUT - name: Extract release notes if: matrix.os == 'ubuntu-latest'