Empty Commit Every 48 Hours #244
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: Empty Commit Every 48 Hours | |
on: | |
schedule: | |
- cron: "0 */48 * * *" | |
jobs: | |
empty_commit: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Set up Git | |
run: | | |
git config --global user.email "[email protected]" | |
git config --global user.name "Nayan Das" | |
- name: Create empty commit | |
run: | | |
git commit --allow-empty -m "Empty commit triggered by scheduler to refresh the server" | |
git commit --amend --no-edit | |
- name: Push empty commit | |
uses: ad-m/[email protected] | |
with: | |
branch: main | |
github_token: ${{ secrets.GITHUBTOKEN }} |