From 142dbfaa2308d3ce7e5f62b37f730fbc47b0317a Mon Sep 17 00:00:00 2001 From: Ze Shitcoin Webdev <112774130+zewebdev1337@users.noreply.github.com> Date: Mon, 13 Nov 2023 12:41:13 -0600 Subject: [PATCH] Create sync-to-gitlab.yml --- .github/workflows/sync-to-gitlab.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .github/workflows/sync-to-gitlab.yml 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