Random Commit 2 #301
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: Random Commit 2 | |
on: | |
schedule: | |
- cron: '*/5 22 * * *' | |
workflow_dispatch: | |
jobs: | |
commit: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Make changes | |
run: | |
echo "Random Commit made at $(date '+%Y-%m-%d %H:%M:%S')" > log.txt | |
- name: Commit and push if changed | |
run: | | |
git pull | |
git config --global user.email "likhonsible@outlook.com" | |
git config --global user.name "likhonsible" | |
git add -A | |
git commit -m "Daily update $(date '+%Y-%m-%d %H:%M:%S')" | |
git push |