Skip to content

Commit

Permalink
Update clone.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
sekedus authored Jun 29, 2024
1 parent e6b98e8 commit b431a20
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/clone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ jobs:
if ! diff -q "clone.json" "clone_before.json" >/dev/null
then
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": "Clone statistics: ${{ github.repository }}", "files": {"clone.json": {"content": "'"$content"'"}}}' > post_clone.json
echo '{"description": "Clone statistics: https://github.com/${{ github.repository }}", "files": {"clone.json": {"content": "'"$content"'"}}}' > post_clone.json
curl -s -X PATCH \
--user "${{ github.actor }}:${{ secrets.SECRET_TOKEN }}" \
-H "Content-Type: application/json" \
Expand Down

0 comments on commit b431a20

Please sign in to comment.