From c41ef1e0e9242c0404d067dea8072bdae3419e5c Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Wed, 12 Jul 2023 22:06:48 +0200 Subject: [PATCH] build: update GH actions 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 72574c5d..8ae1af08 100644 --- a/.github/workflows/clone-count.yml +++ b/.github/workflows/clone-count.yml @@ -2,7 +2,7 @@ name: GitHub Clone Count Update Everyday on: schedule: - - cron: "0 */24 * * *" + - cron: '0 */24 * * *' workflow_dispatch: jobs: @@ -10,8 +10,8 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - + - uses: actions/checkout@v3 + - name: gh login run: echo "${{ secrets.SECRET_TOKEN }}" | gh auth login --with-token @@ -51,7 +51,7 @@ jobs: curl https://raw.githubusercontent.com/MShawon/github-clone-count-badge/master/main.py > main.py python3 main.py - - name: Update gist with latest count + - name: update gist with latest count run: | content=$(sed -e 's/\\/\\\\/g' -e 's/\t/\\t/g' -e 's/\"/\\"/g' -e 's/\r//g' "clone.json" | sed -E ':a;N;$!ba;s/\r{0,1}\n/\\n/g') echo '{"description": "${{ github.repository }} clone statistics", "files": {"clone.json": {"content": "'"$content"'"}}}' > post_clone.json @@ -77,7 +77,7 @@ jobs: ```html' >> CLONE.md echo "GitHub Clones" >> CLONE.md echo '```' >> CLONE.md - + git add CLONE.md git config --global user.name "GitHub Action" git config --global user.email "action@github.com" -- 2.34.1