Skip to content

Commit b72fec0

Browse files
committed
sync with gitlab
1 parent a9b78fd commit b72fec0

File tree

2 files changed

+56
-0
lines changed

2 files changed

+56
-0
lines changed
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: GitLab
2+
3+
on:
4+
push:
5+
branches:
6+
- develop
7+
8+
jobs:
9+
sync-with-gitlab:
10+
runs-on: ubuntu-latest
11+
timeout-minutes: 2
12+
13+
steps:
14+
- uses: actions/checkout@v3
15+
with:
16+
fetch-depth: 0
17+
18+
- name: Setup git
19+
run: |
20+
git config --global user.name "PDC BOT"
21+
git config --global user.email "pdc@example.com"
22+
23+
- name: Update branch
24+
run: |
25+
git fetch origin develop
26+
git remote add gitlab https://${{ secrets.GITLAB_TOKEN_NAME }}:${{ secrets.GITLAB_TOKEN }}@${{ secrets.GITLAB_URL }}
27+
git checkout develop
28+
git push -f gitlab -u develop
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: GitLab
2+
3+
on:
4+
push:
5+
branches:
6+
- stable
7+
8+
jobs:
9+
sync-with-gitlab:
10+
runs-on: ubuntu-latest
11+
timeout-minutes: 2
12+
13+
steps:
14+
- uses: actions/checkout@v3
15+
with:
16+
fetch-depth: 0
17+
18+
- name: Setup git
19+
run: |
20+
git config --global user.name "PDC BOT"
21+
git config --global user.email "pdc@example.com"
22+
23+
- name: Update branch
24+
run: |
25+
git fetch stable
26+
git remote add gitlab https://${{ secrets.GITLAB_TOKEN_NAME }}:${{ secrets.GITLAB_TOKEN }}@${{ secrets.GITLAB_URL }}
27+
git checkout stable
28+
git push -f gitlab -u stable

0 commit comments

Comments
 (0)