Skip to content

Commit 93e2ccd

Browse files
authored
Update push-gitlab.yml
1 parent 48127a9 commit 93e2ccd

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

.github/workflows/push-gitlab.yml

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,6 @@ on:
55
push:
66
branches: [ "main" ]
77

8-
env:
9-
USERNAME: alexcoder04
10-
GITLAB_TOKEN: ${{ secrets.GITLAB_TOKEN }}
11-
128
jobs:
139
push:
1410
if: github.repository == 'alexcoder04/kherson'
@@ -19,7 +15,7 @@ jobs:
1915

2016
- name: Push
2117
run: |
22-
git config user.name "${USERNAME}"
23-
git config user.email "${USERNAME}@protonmail.com"
24-
git remote add gitlab "https://oauth2:${GITLAB_TOKEN}@gitlab.com/${USERNAME}/kherson.git"
18+
git config user.name "${{ github.repository_owner }}"
19+
git config user.email "${{ github.repository_owner }}@protonmail.com"
20+
git remote add gitlab "https://oauth2:${{ secrets.GITLAB_TOKEN }}@gitlab.com/${{ github.repository }}.git"
2521
git push gitlab main

0 commit comments

Comments
 (0)