From 962b721a24c093d1d1385154003a2275e54bc50d Mon Sep 17 00:00:00 2001 From: Kohei Watanabe Date: Mon, 30 Oct 2023 17:44:00 +0900 Subject: [PATCH] create update-empty-branch --- .github/workflows/update-empty-branch.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 .github/workflows/update-empty-branch.yml diff --git a/.github/workflows/update-empty-branch.yml b/.github/workflows/update-empty-branch.yml new file mode 100644 index 0000000..872d58b --- /dev/null +++ b/.github/workflows/update-empty-branch.yml @@ -0,0 +1,18 @@ +name: update-empty-branch +on: + workflow_dispatch: +jobs: + main: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 0 + - run: | + git worktree add --track -b empty empty origin/empty + rm -rf empty/* + git config user.name bot + git config user.email '<>' + git -C empty add --all + git -C empty commit --allow-empty --message "based on $(git rev-parse @)" + git -C empty push origin empty