File tree Expand file tree Collapse file tree 2 files changed +56
-0
lines changed Expand file tree Collapse file tree 2 files changed +56
-0
lines changed Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
You can’t perform that action at this time.
0 commit comments