mirror of
https://github.com/taixingyiji/openit.git
synced 2025-10-26 06:02:29 +00:00
25 lines
578 B
YAML
25 lines
578 B
YAML
name: zz
|
|
on:
|
|
# schedule:
|
|
# - cron: "* * * * 0"
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
zz-job:
|
|
name: Delete History
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- name: init
|
|
run: |
|
|
git config pull.rebase false
|
|
git config --local user.name "GitHub Actions"
|
|
git config --local user.email "actions@github.com"
|
|
- run: |
|
|
git checkout --orphan latest_branch
|
|
git add -A
|
|
git commit -am "Hello World"
|
|
git branch -D main
|
|
git branch -m main
|
|
git push -f origin main
|