From b72fec06c3108954df035d47887944ebf2afffce Mon Sep 17 00:00:00 2001 From: Jean Luca Bez Date: Tue, 8 Apr 2025 12:28:39 -0700 Subject: [PATCH] sync with gitlab --- .github/workflows/gitlab-develop.yml | 28 ++++++++++++++++++++++++++++ .github/workflows/gitlab-stable.yml | 28 ++++++++++++++++++++++++++++ 2 files changed, 56 insertions(+) create mode 100644 .github/workflows/gitlab-develop.yml create mode 100644 .github/workflows/gitlab-stable.yml diff --git a/.github/workflows/gitlab-develop.yml b/.github/workflows/gitlab-develop.yml new file mode 100644 index 000000000..02a670a07 --- /dev/null +++ b/.github/workflows/gitlab-develop.yml @@ -0,0 +1,28 @@ +name: GitLab + +on: + push: + branches: + - develop + +jobs: + sync-with-gitlab: + runs-on: ubuntu-latest + timeout-minutes: 2 + + steps: + - uses: actions/checkout@v3 + with: + fetch-depth: 0 + + - name: Setup git + run: | + git config --global user.name "PDC BOT" + git config --global user.email "pdc@example.com" + + - name: Update branch + run: | + git fetch origin develop + git remote add gitlab https://${{ secrets.GITLAB_TOKEN_NAME }}:${{ secrets.GITLAB_TOKEN }}@${{ secrets.GITLAB_URL }} + git checkout develop + git push -f gitlab -u develop diff --git a/.github/workflows/gitlab-stable.yml b/.github/workflows/gitlab-stable.yml new file mode 100644 index 000000000..c252f63bf --- /dev/null +++ b/.github/workflows/gitlab-stable.yml @@ -0,0 +1,28 @@ +name: GitLab + +on: + push: + branches: + - stable + +jobs: + sync-with-gitlab: + runs-on: ubuntu-latest + timeout-minutes: 2 + + steps: + - uses: actions/checkout@v3 + with: + fetch-depth: 0 + + - name: Setup git + run: | + git config --global user.name "PDC BOT" + git config --global user.email "pdc@example.com" + + - name: Update branch + run: | + git fetch stable + git remote add gitlab https://${{ secrets.GITLAB_TOKEN_NAME }}:${{ secrets.GITLAB_TOKEN }}@${{ secrets.GITLAB_URL }} + git checkout stable + git push -f gitlab -u stable