Kang Commit #6084
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Kang Commit | |
on: | |
push: | |
branches: | |
- master | |
schedule: | |
- cron: "1 * * * *" | |
jobs: | |
auto-commit: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
persist-credentials: true | |
fetch-depth: 0 | |
- name: Modify last update | |
run: | | |
d=`date '+%Y-%m-%dT%H:%M:%SZ'` | |
echo "## 🥱 LAST UPDATED : ${d}" > update.md | |
- name: Commit changes | |
run: | | |
git config --local user.email "[email protected]" | |
git config --local user.name "ArvinPWD" | |
git add -A | |
arr[0]="bot: Hello Dude!" | |
arr[1]="bot: Yuhhuuu!" | |
arr[2]="bot: Working from Master." | |
arr[3]="bot: Work, work, work!" | |
arr[4]="bot: Hufft..." | |
arr[5]="bot: Focus !" | |
arr[6]="bot: Running task, again." | |
arr[7]="bot: Thanks master." | |
d=`date '+%Y-%m-%dT%H:%M:%SZ'` | |
rand=$[$RANDOM % ${#arr[@]}] | |
git commit -am "${arr[$rand]} (at ${d})" | |
- name: GitHub Push | |
uses: ad-m/github-push-action@master | |
with: | |
force: true | |
directory: "." | |
github_token: ${{ secrets.GITHUB_TOKEN }} |