File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,9 @@ name: Mirroring
2
2
3
3
on : [push, delete]
4
4
5
+ permissions :
6
+ contents : read
7
+
5
8
concurrency :
6
9
group : ${{ github.workflow }}
7
10
11
14
steps :
12
15
- name : Checkout code.
13
16
run : git clone --mirror "https://github.com/${GITHUB_REPOSITORY}.git" "${GITHUB_WORKSPACE}"
14
- - name : Get GitLab repository.
15
- run : echo "REPOSITORY_NAME=${GITHUB_REPOSITORY/${GITHUB_REPOSITORY_OWNER}/}" >> "${GITHUB_ENV}"
16
17
- name : Mirroring.
17
- run : git push --mirror "https://oauth2:${{ secrets.GITLAB_PERSONAL_ACCESS_TOKEN }}@gitlab.com/DeveloperC/${REPOSITORY_NAME }"
18
+ run : git push --mirror "https://oauth2:${{ secrets.GITLAB_PERSONAL_ACCESS_TOKEN }}@gitlab.com/DeveloperC/${{ github.event.repository.name } }"
You can’t perform that action at this time.
0 commit comments