From 46bb470e4b36ecc1212c23fe3ecf87b6e66f2bc7 Mon Sep 17 00:00:00 2001 From: Joe Corall Date: Sat, 26 Oct 2024 08:30:51 -0400 Subject: [PATCH] Add gitlab mirror action (#2) --- .github/workflows/mirror.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/mirror.yml diff --git a/.github/workflows/mirror.yml b/.github/workflows/mirror.yml new file mode 100644 index 0000000..efa956a --- /dev/null +++ b/.github/workflows/mirror.yml @@ -0,0 +1,25 @@ +name: Mirror to drupal.org +on: + push: + branches: [1.0.x] + tags: '*' + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 0 + - name: Mirror + trigger CI + uses: SvanBoxel/gitlab-mirror-and-ci-action@master + with: + args: "https://git.drupalcode.org/project/turnstile_protect" + env: + FOLLOW_TAGS: "true" + FORCE_PUSH: "false" + GITLAB_HOSTNAME: "git.drupal.org" + GITLAB_USERNAME: "foo" + GITLAB_PASSWORD: ${{ secrets.GITLAB_PASSWORD }} + GITLAB_PROJECT_ID: "163458" + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}