Touch auto_commited #41
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
# To prevent the repository inactive that will prevent the github actions to run after 60 days | |
# We generate a commit monthly to a file that make the repository "active" | |
name: Touch auto_commited | |
on: | |
schedule: | |
- cron: "0 0 1 * *" # This is running monthly | |
jobs: | |
report: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
ref: master | |
- name: Update commit file | |
run: date +%Y%m%s%H%M%S > auto_commited | |
- name: Commit | |
run: | | |
git config --global user.name 'Deploy Bot' | |
git config --global user.email '[email protected]' | |
git add auto_commited | |
git commit -m "Automated commit" | |
git push |