repositories
/
e-mobility-charging-stations-simulator.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
perf: reduce OCPPUtils memory usage
[e-mobility-charging-stations-simulator.git]
/
.github
/
workflows
/
clone-count.yml
diff --git
a/.github/workflows/clone-count.yml
b/.github/workflows/clone-count.yml
index 3df9887135c6e25a9bb6d9831f23ffd1a1c3501c..43119339ba527a8b35fc0f5bc05c43523ba56d8c 100644
(file)
--- a/
.github/workflows/clone-count.yml
+++ b/
.github/workflows/clone-count.yml
@@
-1,4
+1,4
@@
-name: GitHub Clone Count Update
Everyday
+name: GitHub Clone Count Update
on:
schedule:
on:
schedule:
@@
-6,7
+6,7
@@
on:
workflow_dispatch:
jobs:
workflow_dispatch:
jobs:
-
build
:
+
clone-count
:
runs-on: ubuntu-latest
steps:
runs-on: ubuntu-latest
steps:
@@
-23,7
+23,7
@@
jobs:
> clone.json
- name: create gist and download previous count
> 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
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" \
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="
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 '
repo="https://github.com/MShawon/github-clone-count-badge"
echo ''> CLONE.md
echo '
@@
-78,13
+78,13
@@
jobs:
echo "<a href='$repo'><img alt='GitHub Clones' src='$shields$url&logo=github'></a>" >> CLONE.md
echo '```' >> CLONE.md
echo "<a href='$repo'><img alt='GitHub Clones' src='$shields$url&logo=github'></a>" >> CLONE.md
echo '```' >> CLONE.md
+ git config --local user.name "GitHub Action"
+ git config --local user.email "action@github.com"
git add CLONE.md
git add CLONE.md
- git config --global user.name "GitHub Action"
- git config --global user.email "action@github.com"
- git commit -m "create clone count badge"
+ git commit -m "docs: create clone count badge"
fi
fi
- - name:
P
ush
+ - name:
p
ush
uses: CasperWA/push-protected@v2
with:
token: ${{ secrets.SECRET_TOKEN }}
uses: CasperWA/push-protected@v2
with:
token: ${{ secrets.SECRET_TOKEN }}