From 89170bfc62cf624c3718fe4f815d31c242f98812 Mon Sep 17 00:00:00 2001 From: Adam Matthiesen Date: Mon, 11 Mar 2024 06:13:54 -0700 Subject: [PATCH] add workflow --- .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..702e4a4 --- /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 }} \ No newline at end of file