From: Florian Zschocke Date: Wed, 26 Oct 2022 17:27:32 +0000 (+0200) Subject: ci: Replace set-output command with echo to GITHUB_OUTPUT X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=refs%2Fpull%2F1430%2Fhead;p=gitblit.git 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` --- 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