From 398ba3930c3247df1e1db5b63dd603446a6a720f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8C=83=E6=98=8E=E6=98=8E?= Date: Mon, 2 Dec 2024 18:03:59 +0800 Subject: [PATCH] Delete .github/workflows/n.yml MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 范明明 --- .github/workflows/n.yml | 43 ----------------------------------------- 1 file changed, 43 deletions(-) delete mode 100644 .github/workflows/n.yml diff --git a/.github/workflows/n.yml b/.github/workflows/n.yml deleted file mode 100644 index 76d7e93fb..000000000 --- a/.github/workflows/n.yml +++ /dev/null @@ -1,43 +0,0 @@ -name: Create New Branch Without Commit History - -on: - push: - branches: - - main - -jobs: - create-branch: - runs-on: ubuntu-latest - - steps: - # Check out the repository code - - name: Checkout repository - uses: actions/checkout@v3 - - # Configure git user - - name: Configure git user - run: | - git config --global user.name "GitHub Actions" - git config --global user.email "actions@github.com" - - # Create a new orphan branch - - name: Create orphan branch - run: | - git checkout --orphan new-branch # 创建没有历史记录的分支 - git rm -rf . # 删除当前工作目录中的所有文件 - - # Checkout files from main branch and add them to the new branch - - name: Checkout files from main branch - run: | - git checkout main -- . # 从main分支获取文件 - git add . # 添加所有文件到暂存区 - - # Commit the changes - - name: Commit changes - run: | - git commit -m "Add files from main branch to new-branch" - - # Push the new branch to remote repository - - name: Push new branch - run: | - git push origin new-branch