Sec Commit #5872
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: Sec Commit | |
on: | |
schedule: | |
- cron: '*/1 * * * *' # Run every minute | |
workflow_dispatch: | |
jobs: | |
commit: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Make changes | |
run: | |
echo "Commit 1 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 |