Skip to content

Delete Commit Records Weekly #351

Delete Commit Records Weekly

Delete Commit Records Weekly #351

Workflow file for this run

name: Delete Commit Records Weekly
on:
# workflow_dispatch:
schedule:
- cron: '* 3 1 * *'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Delete commit records
run: |
git config --local user.email "github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
git checkout --orphan new_branch
git commit -m "init"
git branch -D master
git branch -m master
git push -f origin master