From e92dcd7c939668ba05352c467b29fe6c59b6112c Mon Sep 17 00:00:00 2001 From: Eslam Nawara <67752395+Eslam-Nawara@users.noreply.github.com> Date: Mon, 16 Oct 2023 11:54:51 +0300 Subject: [PATCH] Fix deprecated set output (#2078) * remove deprecated set-output * fix usage of $GITHUB_OUTPUT to ${GITHUB_OUTPUT} * use env:GITHUB_OUTPUT for redirection --- .github/workflows/publish-bootstrap.yaml | 2 +- .github/workflows/publish-development.yaml | 2 +- bins/bins-extra.sh | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/publish-bootstrap.yaml b/.github/workflows/publish-bootstrap.yaml index d841919c1..a1aa25ea2 100644 --- a/.github/workflows/publish-bootstrap.yaml +++ b/.github/workflows/publish-bootstrap.yaml @@ -30,7 +30,7 @@ jobs: - name: Set name of the development build id: setname run: | - echo "::set-output name=build::bootstrap-v$(date +%y%m%d.%-H%M%S.0)-dev.flist" + echo "build=bootstrap-v$(date +%y%m%d.%-H%M%S.0)-dev.flist" >> $GITHUB_OUTPUT - name: Publish flist (${{ steps.setname.outputs.build }}) if: success() uses: threefoldtech/publish-flist@master diff --git a/.github/workflows/publish-development.yaml b/.github/workflows/publish-development.yaml index 84fc545ce..52287e44f 100644 --- a/.github/workflows/publish-development.yaml +++ b/.github/workflows/publish-development.yaml @@ -35,7 +35,7 @@ jobs: - name: Set name of the development build id: setname run: | - echo "::set-output name=build::zos:v$(date +%y%m%d.%-H%M%S.0)-dev.flist" + echo "build=zos:v$(date +%y%m%d.%-H%M%S.0)-dev.flist" >> $GITHUB_OUTPUT - name: Publish flist (${{ github.sha }}) if: success() diff --git a/bins/bins-extra.sh b/bins/bins-extra.sh index 6b9457162..ea257c044 100755 --- a/bins/bins-extra.sh +++ b/bins/bins-extra.sh @@ -269,7 +269,7 @@ exclude_libs() { github_name() { # force github print - echo "::set-output name=name::${1}" + echo "name=${1}" >> $env:GITHUB_OUTPUT echo "[+] github exported name: ${1}" }