From 234f0630abbafd6e274e7eac6542cd5b89ef82ab Mon Sep 17 00:00:00 2001
From: Christoph Witzko <github@christophwitzko.com>
Date: Wed, 25 Jan 2023 19:35:34 +0100
Subject: [PATCH] ci: sync branch deletions

---
 .github/workflows/sync-to-gitlab-cleanup.yml | 14 ++++++++++++++
 1 file changed, 14 insertions(+)
 create mode 100644 .github/workflows/sync-to-gitlab-cleanup.yml

diff --git a/.github/workflows/sync-to-gitlab-cleanup.yml b/.github/workflows/sync-to-gitlab-cleanup.yml
new file mode 100644
index 0000000..4a18c50
--- /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 }}
-- 
GitLab