From 7619b4e5923f87676bd84a08dd998ff406f0027d Mon Sep 17 00:00:00 2001 From: catus felis Date: Fri, 6 Jan 2023 17:46:25 +0700 Subject: [PATCH] Create push_to_gitlab.yml --- .github/workflows/push_to_gitlab.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/push_to_gitlab.yml diff --git a/.github/workflows/push_to_gitlab.yml b/.github/workflows/push_to_gitlab.yml new file mode 100644 index 0000000..3ef2373 --- /dev/null +++ b/.github/workflows/push_to_gitlab.yml @@ -0,0 +1,22 @@ +name: Sync with Gitlab + +on: + - push + - delete + +jobs: + sync: + runs-on: ubuntu-latest + name: Git Repo Sync + steps: + - uses: actions/checkout@v2 + with: + fetch-depth: 0 + - uses: wangchucheng/git-repo-sync@v0.1.0 + with: + # Such as https://github.com/wangchucheng/git-repo-sync.git + target-url: ${{ secrets.TARGET_URL }} + # Such as wangchucheng + target-username: ${{ secrets.TARGET_USERNAME }} + # You can store token in your project's 'Setting > Secrets' and reference the name here. Such as ${{ secrets.ACCESS\_TOKEN }} + target-token: ${{ secrets.TARGET_TOKEN }}