From e80e5025df78adf960ca015e1183b7902b882d0a Mon Sep 17 00:00:00 2001 From: Christoph Witzko <github@christophwitzko.com> Date: Wed, 25 Jan 2023 19:17:07 +0100 Subject: [PATCH] ci: add sync to gitlab workflow closes #150 --- .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 0000000..91a6971 --- /dev/null +++ b/.github/workflows/sync-to-gitlab.yml @@ -0,0 +1,19 @@ +name: Sync to GitLab +on: + push: + branches: + - '**' + +jobs: + sync: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + with: + fetch-depth: 0 + - name: Sync to GitLab + run: | + git remote add gitlab https://oauth2:${GITLAB_TOKEN}@gitlab.com/go-semantic-release/semantic-release.git + git push gitlab ${{ github.ref_name }} --force + env: + GITLAB_TOKEN: ${{ secrets.GITLAB_PUSH_TOKEN }} -- GitLab