diff --git a/.github/workflows/sync-to-gitlab.yml b/.github/workflows/sync-to-gitlab.yml new file mode 100644 index 000000000..f437a1960 --- /dev/null +++ b/.github/workflows/sync-to-gitlab.yml @@ -0,0 +1,19 @@ +name: Sync to GitLab + +on: + push: + workflow_dispatch: + +jobs: + sync: + runs-on: ubuntu-latest + steps: + - name: Checkout GitHub repository + uses: actions/checkout@v2 + + - name: Push to GitLab + env: + GITLAB_TOKEN: ${{ secrets.GITLAB_ACCESS_TOKEN }} + run: | + git remote add gitlab https://oauth2:${GITLAB_TOKEN}@gitlab.com/zewebdev1337/devGPT-base.git + git push gitlab HEAD:main --force