Skip to content

Commit

Permalink
ci: update
Browse files Browse the repository at this point in the history
  • Loading branch information
christophstockinger committed Nov 13, 2024
1 parent ced3ccb commit 6a57a83
Showing 1 changed file with 13 additions and 11 deletions.
24 changes: 13 additions & 11 deletions .github/workflows/split.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ jobs:
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Install git-filter-repo
run: |
curl -Lo /usr/local/bin/git-filter-repo https://raw.githubusercontent.com/newren/git-filter-repo/main/git-filter-repo
Expand All @@ -31,20 +32,21 @@ jobs:
env:
BACKEND_REPO_URL: https://github-actions:${{ secrets.GITHUB_TOKEN }}@github.com/${{ secrets.BACKENd_REPO }}.git
run: |
echo $BACKEND_REPO_URL
# Clone only the backend directory with history
git clone --no-checkout $GITHUB_SERVER_URL/$GITHUB_REPOSITORY backend-split
cd backend-split
git filter-repo --path backend/ --path-rename backend/:/
# git filter-repo --path backend/ --path-rename backend/:/
git remote add backend $BACKEND_REPO_URL
git push --force backend main
- name: Split Frontend Repo
env:
FRONTEND_REPO_URL: https://github-actions:${{ secrets.GITHUB_TOKEN }}@github.com/${{ secrets.FRONTEND_REPO }}.git
run: |
# Clone only the frontend directory with history
git clone --no-checkout $GITHUB_SERVER_URL/$GITHUB_REPOSITORY frontend-split
cd frontend-split
git filter-repo --path frontend/ --path-rename frontend/:/
git remote add frontend $FRONTEND_REPO_URL
git push --force frontend main
# - name: Split Frontend Repo
# env:
# FRONTEND_REPO_URL: https://github-actions:${{ secrets.GITHUB_TOKEN }}@github.com/${{ secrets.FRONTEND_REPO }}.git
# run: |
# # Clone only the frontend directory with history
# git clone --no-checkout $GITHUB_SERVER_URL/$GITHUB_REPOSITORY frontend-split
# cd frontend-split
# git filter-repo --path frontend/ --path-rename frontend/:/
# git remote add frontend $FRONTEND_REPO_URL
# git push --force frontend main

0 comments on commit 6a57a83

Please sign in to comment.