mirror of
https://github.com/kou029w/_.git
synced 2025-01-31 06:18:07 +00:00
19 lines
509 B
YAML
19 lines
509 B
YAML
|
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
|