X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=.github%2Fworkflows%2Fclone-count.yml;h=3df9887135c6e25a9bb6d9831f23ffd1a1c3501c;hb=916678e95be119a569677280f846a3c79506f6ea;hp=b7898a8f615da6e2711cb04a83481298c1affb2d;hpb=a43b0b4786196687d535dc0ef6412a04b5ffbaff;p=e-mobility-charging-stations-simulator.git diff --git a/.github/workflows/clone-count.yml b/.github/workflows/clone-count.yml index b7898a8f..3df98871 100644 --- a/.github/workflows/clone-count.yml +++ b/.github/workflows/clone-count.yml @@ -10,7 +10,7 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: gh login run: echo "${{ secrets.SECRET_TOKEN }}" | gh auth login --with-token @@ -28,21 +28,21 @@ 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 + git rm --ignore-unmatch CLONE.md fi else 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