diff --git a/.github/workflows/gitlab-del-branch.yml b/.github/workflows/gitlab-del-branch.yml new file mode 100644 index 000000000..0d3d0bdda --- /dev/null +++ b/.github/workflows/gitlab-del-branch.yml @@ -0,0 +1,19 @@ +name: Delete branch from GitLab +on: + delete: + branches: '*' + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - 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 f59207e8a..66be28c15 100644 --- a/.github/workflows/gitlab-mirror.yml +++ b/.github/workflows/gitlab-mirror.yml @@ -2,14 +2,14 @@ name: Mirror and run GitLab CI on: push: - branches: [2.x] + branches: '*' tags: '*' jobs: build: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: fetch-depth: 0 - name: Mirror + trigger CI