Skip to content
This repository has been archived by the owner on Oct 23, 2024. It is now read-only.

.github/workflows/sync-to-gitlab.yml #2

.github/workflows/sync-to-gitlab.yml

.github/workflows/sync-to-gitlab.yml #2

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