Skip to content

Empty Commit Every 48 Hours #190

Empty Commit Every 48 Hours

Empty Commit Every 48 Hours #190

Workflow file for this run

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 }}