Repository navigation
update maps #12
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Sync Frontend | |
| on: | |
| push: | |
| branches: | |
| - frontend_dev | |
| - frontend | |
| - fullstack | |
| - build | |
| - debug | |
| - main | |
| workflow_dispatch: | |
| jobs: | |
| push-subtrees: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout fullstack | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Setup SSH | |
| uses: webfactory/ssh-agent@v0.9.1 | |
| with: | |
| ssh-private-key: ${{ secrets.FRONTEND_KEY }} | |
| - name: Set Git user | |
| run: | | |
| git config user.name "github-actions[bot]" | |
| git config user.email "github-actions[bot]@users.noreply.github.com" | |
| - name: Add frontend remote | |
| run: git remote add frontend-remote git@github.com:OPSILab/Data-model-mapper-frontend.git || echo "Remote already exists" | |
| - name: Push frontend subtree | |
| run: git subtree push --prefix=frontend frontend-remote main || echo "No changes" |