Skip to content

Commit

Permalink
Add automated GitLab mirroring
Browse files Browse the repository at this point in the history
  • Loading branch information
Argmaster committed Nov 11, 2024
1 parent 69d11e8 commit 88aebc5
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/mirror_to_gitlab.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
---
name: Mirror to GitLab

on:
push:
branches:
- main
workflow_dispatch:

jobs:
deploy-to-pypi:
if: github.repository_owner == 'Argmaster'
name: Mirror to GitLab
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/[email protected]
with:
fetch-depth: 0
fetch-tags: true

- name: Push to GitLab
run: |
git config user.name github-actions
git config user.email [email protected]
git remote add gitlab https://${{ secrets.GITLAB_USERNAME }}:${token}@${{ secrets.GITLAB_URL }}
git push gitlab main
env:
token: ${{ secrets.GITLAB_MIRROR_ACCESS }}

0 comments on commit 88aebc5

Please sign in to comment.