]> source.dussan.org Git - gitblit.git/commitdiff
ci: Replace set-output command with echo to GITHUB_OUTPUT 1430/head
authorFlorian Zschocke <f.zschocke+git@gmail.com>
Wed, 26 Oct 2022 17:27:32 +0000 (19:27 +0200)
committerFlorian Zschocke <f.zschocke+git@gmail.com>
Thu, 27 Oct 2022 21:34:21 +0000 (23:34 +0200)
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

index 49a38bf20318bb63e8b9b7119424afe31d04152e..38a1ff17fdbc71cdc92809dd349edd9b7077e156 100644 (file)
@@ -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