mirror of
https://github.com/Snigdha-OS/snigdhaos-arctic.git
synced 2025-09-20 19:45:01 +02:00
🐞 fix(mirror): gitlab
This commit is contained in:
11
.github/workflows/gitlab.yml
vendored
11
.github/workflows/gitlab.yml
vendored
@@ -1,4 +1,4 @@
|
|||||||
name: Push to GitLab
|
name: Mirror to GitLab
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
@@ -6,16 +6,17 @@ on:
|
|||||||
- master
|
- master
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
deploy:
|
mirror:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v2.3.3
|
uses: actions/checkout@v2.3.3
|
||||||
- name: Push to GitLab
|
- name: Mirror to GitLab
|
||||||
env:
|
env:
|
||||||
GITLAB_REPO: ${{ secrets.GITLAB_REPO }}
|
GITLAB_REPO: ${{ secrets.GITLAB_REPO }}
|
||||||
GITLAB_USERNAME: ${{ secrets.GITLAB_USERNAME }}
|
GITLAB_USERNAME: ${{ secrets.GITLAB_USERNAME }}
|
||||||
GITLAB_PASSWORD: ${{ secrets.GITLAB_PASSWORD }}
|
GITLAB_PASSWORD: ${{ secrets.GITLAB_PASSWORD }}
|
||||||
run: |
|
run: |
|
||||||
git remote add gitlab https://gitlab.com/snigdhaos/snigdhaos-arctic.git
|
git remote add gitlab https://${GITLAB_USERNAME}:${GITLAB_PASSWORD}@${GITLAB_REPO##*/}.git
|
||||||
git push gitlab master
|
git config --global push.default mirror
|
||||||
|
git push --mirror gitlab
|
Reference in New Issue
Block a user