mirror of
https://github.com/ermaozi/get_subscribe.git
synced 2026-09-30 04:01:41 +00:00
25 lines
593 B
YAML
25 lines
593 B
YAML
name: 每周删除提交记录
|
|
on:
|
|
workflow_dispatch:
|
|
schedule:
|
|
- cron: '0 2 * * 1'
|
|
permissions:
|
|
contents: write
|
|
concurrency:
|
|
group: repository-updates
|
|
cancel-in-progress: false
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v7
|
|
- name: 删除提交记录
|
|
run: |
|
|
git config --global user.name "ermaozi"
|
|
git config --global user.email admin@ermao.net
|
|
git checkout --orphan new_branch
|
|
git commit -m "初始化仓库"
|
|
git branch -D main
|
|
git branch -m main
|
|
git push -f origin main
|