diff --git a/.github/workflows/sync-to-gitlab-cleanup.yml b/.github/workflows/sync-to-gitlab-cleanup.yml new file mode 100644 index 0000000000000000000000000000000000000000..4a18c506f8caad58ac7ba2d6f5c52965a7256e53 --- /dev/null +++ b/.github/workflows/sync-to-gitlab-cleanup.yml @@ -0,0 +1,14 @@ +name: Sync to GitLab Cleanup +on: + delete + +jobs: + cleanup: + if: github.event.ref_type == 'branch' + runs-on: ubuntu-latest + steps: + - name: Cleanup + run: | + git push https://oauth2:${GITLAB_TOKEN}@gitlab.com/go-semantic-release/semantic-release.git :${{ github.event.ref }} + env: + GITLAB_TOKEN: ${{ secrets.GITLAB_PUSH_TOKEN }}