Skip to content

Commit 60e616f

Browse files
committed
Add random quote to commit message
1 parent cd51600 commit 60e616f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/main.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -66,11 +66,12 @@ jobs:
6666
6767
DEMYX_CHECK_STATUS="$(git status)"
6868
if [[ "$DEMYX_CHECK_STATUS" != *"nothing to commit"* ]]; then
69+
DEMYX_RANDOM_QUOTE="$(curl -s "https://api.quotable.io/random?tags=technology" | jq -r '. | "\"\(.content)\" - \(.author)"')"
6970
git config --global user.name github-actions[bot]
7071
git config --global user.email github-actions[bot]@users.noreply.github.com
7172
git remote set-url origin https://demyxsh:${{ secrets.DEMYX_TOKEN }}@github.com/demyxsh/${{ env.DEMYX_REPOSITORY }}
7273
git add .
73-
git commit -m "Scheduled Build"
74+
git commit -m "${DEMYX_RANDOM_QUOTE:-Scheduled Build}"
7475
git push
7576
fi
7677

0 commit comments

Comments
 (0)