From: Jérôme Benoit Date: Wed, 12 Jul 2023 20:06:48 +0000 (+0200) Subject: build: update GH actions X-Git-Tag: v1.2.18~40 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=c41ef1e0e9242c0404d067dea8072bdae3419e5c;p=e-mobility-charging-stations-simulator.git build: update GH actions Signed-off-by: Jérôme Benoit --- 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"