Create context_builder.py #21
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 to GitLab | |
| on: | |
| push: | |
| branches: [ main ] | |
| jobs: | |
| mirror: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout full history | |
| uses: actions/checkout@v3 | |
| with: | |
| fetch-depth: 0 # Без shallow clone | |
| - name: Push to GitLab | |
| env: | |
| GITLAB_URL: https://gitlab.com/kagvi13/HMP.git | |
| GITLAB_USER: ${{ secrets.GITLAB_USER }} | |
| GITLAB_TOKEN: ${{ secrets.GITLAB_TOKEN }} | |
| run: | | |
| git config --global user.email "github@actions" | |
| git config --global user.name "GitHub Actions" | |
| git remote add gitlab https://$GITLAB_USER:$GITLAB_TOKEN@gitlab.com/kagvi13/HMP.git | |
| git push --force gitlab main |