Skip to content

Commit f173d1b

Browse files
authored
Create push-gitlab.yml
1 parent ad0ec82 commit f173d1b

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

.github/workflows/push-gitlab.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
2+
name: Push to GitLab
3+
4+
on:
5+
push:
6+
branches: [ "main" ]
7+
8+
env:
9+
USERNAME: alexcoder04
10+
GITLAB_TOKEN: ${{ secrets.GITLAB_TOKEN }}
11+
12+
jobs:
13+
push:
14+
if: github.repository == "alexcoder04/kherson"
15+
runs-on: ubuntu-latest
16+
17+
steps:
18+
- uses: actions/checkout@v3
19+
20+
- name: Push
21+
run: |
22+
git config user.name "${USERNAME}"
23+
git config user.email "${USERNAME}@protonmail.com"
24+
git remote set-url gitlab "https://oauth2:${GITLAB_TOKEN}@gitlab.com/${USERNAME}/kherson.git"
25+
git push gitlab main

0 commit comments

Comments
 (0)