name: Scheduled Restart on: schedule: - cron: '0 */1 * * *' # every 6 hours workflow_dispatch: jobs: restart: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - run: | date > restart.txt git config user.name "github-actions" git config user.email "github-actions@github.com" git add restart.txt git commit -m "Scheduled restart" git push