diff --git a/.github/workflows/gitlab-del-branch.yml b/.github/workflows/gitlab-del-branch.yml new file mode 100644 index 000000000..4e9199fa0 --- /dev/null +++ b/.github/workflows/gitlab-del-branch.yml @@ -0,0 +1,18 @@ +name: Delete branch from GitLab +on: + delete: + branches: '*' + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Delete branch + env: + GITLAB_USERNAME: "project_34868_bot" + GITLAB_PASSWORD: ${{ secrets.GITLAB_PASSWORD }} + GITLAB_HOSTNAME: "git.drupal.org" + GITLAB_PATH: "project/islandora" + run: | + git remote add gitlab "https://$GITLAB_USERNAME:$GITLAB_PASSWORD@$GITLAB_HOSTNAME/$GITLAB_PATH" + git push gitlab :${GITHUB_REF#refs/heads/} diff --git a/.github/workflows/gitlab-mirror.yml b/.github/workflows/gitlab-mirror.yml index edeebce28..66be28c15 100644 --- a/.github/workflows/gitlab-mirror.yml +++ b/.github/workflows/gitlab-mirror.yml @@ -4,8 +4,6 @@ on: push: branches: '*' tags: '*' - delete: - branches: '*' jobs: build: