Skip to content

Commit

Permalink
[CI] Split repos
Browse files Browse the repository at this point in the history
  • Loading branch information
vertexvaar committed Feb 12, 2024
1 parent 32e32ef commit 4a10583
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/split.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
on:
push:
branches: [ "master" ]
tags:
- "*"

jobs:
label_issue:
runs-on: ubuntu-latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v4
- run: for dir in packages/*; do git remote add ${dir##*/} https://__token__:[email protected]/vertexvaar/${dir##*/}.git; git fetch ${dir##*/}; git subtree split --prefix=packages/${dir##*/} -b main; git push --force ${dir##*/} main; git remote remove ${dir##*/}; git branch -D main; done;

0 comments on commit 4a10583

Please sign in to comment.