From c950ce3d9b186ff7812a661b6afb3be34d26dd4d Mon Sep 17 00:00:00 2001 From: Florian Zschocke Date: Wed, 26 Oct 2022 19:27:32 +0200 Subject: [PATCH] ci: Replace set-output command with echo to GITHUB_OUTPUT The `set-output` command was deprecated. The new way to set an output parameter for a step is to echo to the file stored in `$GITHUB_OUTPUT` --- .github/workflows/nightly-build.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/nightly-build.yml b/.github/workflows/nightly-build.yml index 49a38bf2..38a1ff17 100644 --- a/.github/workflows/nightly-build.yml +++ b/.github/workflows/nightly-build.yml @@ -111,7 +111,7 @@ jobs: id: check-dh-login run: | if [[ -n "${{secrets.DOCKERHUB_GB_TOKEN}}" && -n "${{secrets.DOCKERHUB_GB_USER}}" ]] ; then - echo "::set-output name=secrets_present::true" + echo "secrets_present=true" >> $GITHUB_OUTPUT else echo "No Docker Hub login data found. Skipping Docker." fi @@ -163,7 +163,7 @@ jobs: gbver=${gbver##*gitblit-} echo "Version detected: $gbver" echo "GITBLIT_VERSION=$gbver" >> "${GITHUB_ENV}" - echo "::set-output name=gb-version::$gbver" + echo "gb-version=$gbver" >> $GITHUB_OUTPUT - name: Generate Dockerfile for snapshot image working-directory: ../gitblit-docker -- 2.39.5