From 206d4403acaf9475fde6742a5a3814edf6cc89ca Mon Sep 17 00:00:00 2001 From: Adam Matthiesen <30383579+Adammatthiesen@users.noreply.github.com> Date: Sat, 24 Feb 2024 11:40:12 -0800 Subject: [PATCH] Create gitlab-sync.yml --- .github/workflows/gitlab-sync.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/gitlab-sync.yml diff --git a/.github/workflows/gitlab-sync.yml b/.github/workflows/gitlab-sync.yml new file mode 100644 index 0000000..6899238 --- /dev/null +++ b/.github/workflows/gitlab-sync.yml @@ -0,0 +1,22 @@ +name: "Sync: GitHub => GitLab" + +on: + - push + - delete + +jobs: + sync: + runs-on: ubuntu-latest + name: Git Repo Sync + steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 0 + - uses: jauderho/git-repo-sync@63782025e80e84c48b25a1ee6bb9a22a3bd570d3 + with: + # Such as https://github.com/wangchucheng/git-repo-sync.git + target-url: ${{ secrets.GITLAB_URL }} + # Such as wangchucheng + target-username: ${{ secrets.GITLAB_USERNAME }} + # You can store token in your project's 'Setting > Secrets' and reference the name here. Such as ${{ secrets.ACCESS\_TOKEN }} + target-token: ${{ secrets.GITLAB_ACCESS }}