Skip to content

Sync to GitLab Cleanup #6

Sync to GitLab Cleanup

Sync to GitLab Cleanup #6

name: Sync to GitLab Cleanup
on:
delete
jobs:
cleanup:
if: github.event.ref_type == 'branch'
runs-on: ubuntu-latest
steps:
- name: Cleanup
run: |
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 }}