1
0
Fork 0
mirror of https://github.com/kou029w/_.git synced 2025-01-30 13:58:08 +00:00

create update-empty-branch

This commit is contained in:
Nebel 2023-10-30 17:44:00 +09:00
parent 24ac4ed7b1
commit 962b721a24
Signed by: nebel
GPG key ID: 79807D08C6EF6460

View file

@ -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