We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 75fe239 commit eec88e9Copy full SHA for eec88e9
.github/workflows/mirroring.yml
@@ -2,6 +2,9 @@ name: Mirroring
2
3
on: [push, delete]
4
5
+permissions:
6
+ contents: read
7
+
8
concurrency:
9
group: ${{ github.workflow }}
10
@@ -11,7 +14,5 @@ jobs:
11
14
steps:
12
15
- name: Checkout code.
13
16
run: git clone --mirror "https://github.com/${GITHUB_REPOSITORY}.git" "${GITHUB_WORKSPACE}"
- - name: Get GitLab repository.
- run: echo "REPOSITORY_NAME=${GITHUB_REPOSITORY/${GITHUB_REPOSITORY_OWNER}/}" >> "${GITHUB_ENV}"
17
- name: Mirroring.
- 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 }}"
0 commit comments