build(ci): silence deprecation warning
authorJérôme Benoit <jerome.benoit@sap.com>
Fri, 14 Jul 2023 14:55:53 +0000 (16:55 +0200)
committerJérôme Benoit <jerome.benoit@sap.com>
Fri, 14 Jul 2023 14:55:53 +0000 (16:55 +0200)
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
.github/workflows/clone-count.yml

index b7898a8f615da6e2711cb04a83481298c1affb2d..e8595f8817c80e9b881ca60fce7c1bbcf1d6a34f 100644 (file)
@@ -28,13 +28,13 @@ jobs:
           if gh secret list | grep -q "GIST_ID"
           then
               echo "GIST_ID found"
-              echo ::set-output name=GIST::${{ secrets.GIST_ID }}
+              echo "GIST=${{ secrets.GIST_ID }}" >> $GITHUB_OUTPUT
               curl https://gist.githubusercontent.com/${{ github.actor }}/${{ secrets.GIST_ID }}/raw/clone.json > clone_before.json
               if cat clone_before.json | grep '404: Not Found'; then
                 echo "GIST_ID not valid anymore. Creating another gist..."
                 gist_id=$(gh gist create clone.json | awk -F / '{print $NF}')
                 echo $gist_id | gh secret set GIST_ID
-                echo ::set-output name=GIST::$gist_id
+                echo "GIST=${gist_id}" >> $GITHUB_OUTPUT
                 cp clone.json clone_before.json
                 git rm --ignore-unmatch  CLONE.md
               fi
@@ -42,7 +42,7 @@ jobs:
               echo "GIST_ID not found. Creating a gist..."
               gist_id=$(gh gist create clone.json | awk -F / '{print $NF}')
               echo $gist_id | gh secret set GIST_ID
-              echo ::set-output name=GIST::$gist_id
+              echo "GIST=${gist_id}" >> $GITHUB_OUTPUT
               cp clone.json clone_before.json
           fi