From 72283da424d3ad07ac70dd4be35fe4999c01d6e1 Mon Sep 17 00:00:00 2001 From: Dennis Schubert Date: Thu, 8 Dec 2022 00:58:42 +0100 Subject: [PATCH] Issue #15 - Echo into GITHUB_OUTPUT instead of using ::set-output. See https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/ --- .github/workflows/build.yml | 2 +- .github/workflows/docker-release.yml | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 15579c9..ae1943c 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -29,7 +29,7 @@ jobs: zip camo.zip camo - name: Get the built version number id: version_number - run: echo ::set-output name=version::$(out/bin/camo --version | awk -F ' ' '{print $2}') + run: echo "version=$(out/bin/camo --version | awk -F ' ' '{print $2}')" >> $GITHUB_OUTPUT - name: Upload release artifacts uses: actions/upload-artifact@v3 with: diff --git a/.github/workflows/docker-release.yml b/.github/workflows/docker-release.yml index b4ea80f..0532cd9 100644 --- a/.github/workflows/docker-release.yml +++ b/.github/workflows/docker-release.yml @@ -13,9 +13,9 @@ jobs: - name: Split tag name into semver-compatible subsections id: version_numbers run: | - echo ::set-output name=patch::$(echo $GITHUB_REF | sed 's=refs/tags/v==g') - echo ::set-output name=minor::$(echo $GITHUB_REF | sed 's=refs/tags/v==g' | cut -d "." -f 1,2) - echo ::set-output name=major::$(echo $GITHUB_REF | sed 's=refs/tags/v==g' | cut -d "." -f 1) + echo "patch=$(echo $GITHUB_REF | sed 's=refs/tags/v==g')" >> $GITHUB_OUTPUT + echo "minor=$(echo $GITHUB_REF | sed 's=refs/tags/v==g' | cut -d "." -f 1,2)" >> $GITHUB_OUTPUT + echo "major=$(echo $GITHUB_REF | sed 's=refs/tags/v==g' | cut -d "." -f 1)" >> $GITHUB_OUTPUT - name: Login to DockerHub uses: docker/login-action@v2 with: