-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbeepboop.sh
executable file
·24 lines (21 loc) · 1.04 KB
/
beepboop.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/bash
# ------------------------------------------------------------------
# [Bryan Kerr] GreenCommit
# Description: Make my github green again
# ------------------------------------------------------------------
# SHA=$(curl https://api.github.com/repos/sapnu-puas/GreenCommit/contents/README.md | jq -r '.sha')
# #jq not download in heroku
# if [ -f .env ]; then
# # Load Environment Variables
# export $(cat .env | grep -v '#' | sed 's/\r$//' | awk '/=/ {print $1}' )
# fi
# curl \
# -X PUT \
# -H "Accept: application/vnd.github.v3+json" \
# -H "Authorization: token $GITTOKEN" \
# https://api.github.com/repos/sapnu-puas/GreenCommit/contents/README.md \
# -d "{\"message\":\"Wise man says only fool rush in\",\"committer\":{\"name\":\"McKidKneeKaneSir\",\"email\":\"$EMAIL\"},\"content\":\"TWNLaWRLbmVlS2FuZVNpcg==\",\"sha\":\"$SHA\"}"
dates="$(date +'%d/%m/%Y')"
time="$(date +'%T')"
echo "#### Wise man says only fool rush in - McKidKneeKaneSir" > README.md
echo "Updated on $dates - $time (UTC) Time Zone" >> README.md