From b1871f64db0b1c9e8b584426547f329b71570da9 Mon Sep 17 00:00:00 2001 From: Petter Salminen Date: Thu, 24 Nov 2022 21:52:49 +0100 Subject: [PATCH] New style for '::set-output' Github has done some updates, and this is is a warning, see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/ --- .github/workflows/rust_publish.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/rust_publish.yml b/.github/workflows/rust_publish.yml index 9fa71f9..a850fdc 100644 --- a/.github/workflows/rust_publish.yml +++ b/.github/workflows/rust_publish.yml @@ -26,7 +26,8 @@ jobs: - name: Get version from github ref id: get_version - run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//} + run: echo "{VERSION}={${GITHUB_REF/refs\/tags\//}}" >> $GITHUB_OUTPUT + - name: Build and push uses: docker/build-push-action@v3 @@ -42,7 +43,7 @@ jobs: steps: - name: Get version from github ref id: get_version - run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//} + run: echo "{VERSION}={${GITHUB_REF/refs\/tags\//}}" >> $GITHUB_OUTPUT - name: Login via Azure CLI uses: azure/login@v1