Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions .github/workflows/gitlab-develop.yml
Original file line number Diff line number Diff line change
@@ -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
28 changes: 28 additions & 0 deletions .github/workflows/gitlab-stable.yml
Original file line number Diff line number Diff line change
@@ -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
Loading