From 124eecd7855edb64b4bab78295d248c3907fe7f4 Mon Sep 17 00:00:00 2001 From: Christoph Witzko <github@christophwitzko.com> Date: Wed, 25 Jan 2023 19:46:40 +0100 Subject: [PATCH] ci: fix cleanup workflow --- .github/workflows/sync-to-gitlab-cleanup.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/sync-to-gitlab-cleanup.yml b/.github/workflows/sync-to-gitlab-cleanup.yml index 4a18c50..09871bf 100644 --- a/.github/workflows/sync-to-gitlab-cleanup.yml +++ b/.github/workflows/sync-to-gitlab-cleanup.yml @@ -9,6 +9,8 @@ jobs: steps: - name: Cleanup run: | - git push https://oauth2:${GITLAB_TOKEN}@gitlab.com/go-semantic-release/semantic-release.git :${{ github.event.ref }} + git init + git remote add gitlab https://oauth2:${GITLAB_TOKEN}@gitlab.com/go-semantic-release/semantic-release.git + git push gitlab :${{ github.event.ref }} env: GITLAB_TOKEN: ${{ secrets.GITLAB_PUSH_TOKEN }} -- GitLab