Skip to content

Commit

Permalink
Update build script
Browse files Browse the repository at this point in the history
0xWDG committed Apr 7, 2024

Verified

This commit was signed with the committer’s verified signature. The key has expired.
0xWDG Wesley de Groot
1 parent 07026c5 commit a2ac775
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/update_contributors.yml
Original file line number Diff line number Diff line change
@@ -61,14 +61,15 @@ jobs:
sha=${{ steps.get_sha.outputs.sha }}
commit_message="Update Contributors (`date`)"
api_url="https://api.github.com/repos/AuroraEditor/auroraeditor.com/contents/public/data/contributors.json"
json="{\"message\": \"$commit_message\", \"content\": \"$(base64 <<< `cat contributors.json`)\", \"branch\": \"main\", \"sha\": \"$sha\"}"
echo "JSON: $json"
json="{\"message\": \"$commit_message\", \"content\": \"$(base64 -i contributors.json -w 0)\", \"branch\": \"main\", \"sha\": \"$sha\"}"
# Use curl to create the commit with the updated JSON file
curl -H "Authorization: Bearer $PAT" -X PUT \
-d json \
"$api_url"
echo "JSON: $json"
- name: Upload 'contributors.json' to repo
run: |
git config --global user.name 'aurora-care-bear'

0 comments on commit a2ac775

Please sign in to comment.