mirror of
https://github.com/Azornes/Comfyui-LayerForge.git
synced 2026-03-25 14:25:44 -03:00
Update clone.yml
This commit is contained in:
6
.github/workflows/clone.yml
vendored
6
.github/workflows/clone.yml
vendored
@@ -19,7 +19,7 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
curl --user "${{ github.actor }}:${{ secrets.SECRET_TOKEN }}" \
|
curl --user "${{ github.actor }}:${{ secrets.SECRET_TOKEN }}" \
|
||||||
-H "Accept: application/vnd.github.v3+json" \
|
-H "Accept: application/vnd.github.v3+json" \
|
||||||
https://api.github.com/repos/Azornes/Comfyui-LayerForge/traffic/clones \
|
https://api.github.com/repos/${{ github.repository }}/traffic/clones \
|
||||||
> clone.json
|
> clone.json
|
||||||
|
|
||||||
- name: create gist and download previous count
|
- name: create gist and download previous count
|
||||||
@@ -54,7 +54,7 @@ jobs:
|
|||||||
- name: Update gist with latest count
|
- name: Update gist with latest count
|
||||||
run: |
|
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')
|
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": "Azornes/Comfyui-LayerForge clone statistics", "files": {"clone.json": {"content": "'"$content"'"}}}' > post_clone.json
|
echo '{"description": "${{ github.repository }} clone statistics", "files": {"clone.json": {"content": "'"$content"'"}}}' > post_clone.json
|
||||||
curl -s -X PATCH \
|
curl -s -X PATCH \
|
||||||
--user "${{ github.actor }}:${{ secrets.SECRET_TOKEN }}" \
|
--user "${{ github.actor }}:${{ secrets.SECRET_TOKEN }}" \
|
||||||
-H "Content-Type: application/json" \
|
-H "Content-Type: application/json" \
|
||||||
@@ -71,7 +71,7 @@ jobs:
|
|||||||
```markdown' >> CLONE.md
|
```markdown' >> CLONE.md
|
||||||
echo "[]($repo)" >> CLONE.md
|
echo "[]($repo)" >> CLONE.md
|
||||||
echo '
|
echo '
|
||||||
```
|
```'
|
||||||
|
|
||||||
**HTML**
|
**HTML**
|
||||||
```html' >> CLONE.md
|
```html' >> CLONE.md
|
||||||
|
|||||||
Reference in New Issue
Block a user