Skip to content

Commit

Permalink
ci: 🎡 add mirror to Gitlab workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
streamich committed Apr 27, 2024
1 parent 4619f16 commit b198f40
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/mirror.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Mirror

on:
push:
branches: [master]

jobs:
mirror:
name: Push To Gitlab
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Push To Gitlab
env:
token: ${{ secrets.GITLAB_TOKEN }}
run: |
git config user.name "streamich"
git config user.email "memfs@users.noreply.github.com"
git remote add mirror "https://oauth2:${token}@gitlab.com/streamich/memfs.git"
git push mirror master

0 comments on commit b198f40

Please sign in to comment.