Skip to content

Commit

Permalink
ci: 🎡 add mirror action
Browse files Browse the repository at this point in the history
  • Loading branch information
streamich committed Dec 1, 2023
1 parent 3583a14 commit 6ee5694
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/mirror.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Node.js CI

on:
push:
branches: [ master ]

jobs:
mirror:
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 "[email protected]"
git remote add mirror "https://oauth2:${token}@gitlab.com/streamich/json-joy.git"
git push mirror master

0 comments on commit 6ee5694

Please sign in to comment.