From 9d9a7a0d2a3c919359a70fd0dbd38b80543a7d0c Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Sat, 9 Sep 2023 18:42:38 +0200 Subject: [PATCH] build(actions): cleanup clone count workflow MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérôme Benoit --- .github/workflows/clone-count.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/clone-count.yml b/.github/workflows/clone-count.yml index 3df98871..628eb704 100644 --- a/.github/workflows/clone-count.yml +++ b/.github/workflows/clone-count.yml @@ -6,7 +6,7 @@ on: workflow_dispatch: jobs: - build: + clone-count: runs-on: ubuntu-latest steps: @@ -23,7 +23,7 @@ jobs: > clone.json - name: create gist and download previous count - id: set_id + id: set-gist run: | if gh secret list | grep -q "GIST_ID" then @@ -58,11 +58,11 @@ jobs: curl -s -X PATCH \ --user "${{ github.actor }}:${{ secrets.SECRET_TOKEN }}" \ -H "Content-Type: application/json" \ - -d @post_clone.json https://api.github.com/gists/${{ steps.set_id.outputs.GIST }} > /dev/null 2>&1 + -d @post_clone.json https://api.github.com/gists/${{ steps.set-gist.outputs.GIST }} > /dev/null 2>&1 if [ ! -f CLONE.md ]; then shields="https://img.shields.io/badge/dynamic/json?color=success&label=Clone&query=count&url=" - url="https://gist.githubusercontent.com/${{ github.actor }}/${{ steps.set_id.outputs.GIST }}/raw/clone.json" + url="https://gist.githubusercontent.com/${{ github.actor }}/${{ steps.set-gist.outputs.GIST }}/raw/clone.json" repo="https://github.com/MShawon/github-clone-count-badge" echo ''> CLONE.md echo ' @@ -84,7 +84,7 @@ jobs: git commit -m "create clone count badge" fi - - name: Push + - name: push uses: CasperWA/push-protected@v2 with: token: ${{ secrets.SECRET_TOKEN }} -- 2.34.1