Skip to content

Commit

Permalink
Mirror workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
arf20 committed Mar 24, 2024
1 parent 8ac8c33 commit 27915af
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/mirror.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Mirror to ARFNET

on: [push]

env:
REMOTE_REPO: arfnet2-cstims
REMOTE_SERVER: git.arf20.com

jobs:
push-mirror:
runs-on: ubuntu-latest
steps:
- name: Clone repo
run: git clone https://github.com/${{ github.repository }}

- name: Push to remote repo
run: cd $REMOTE_REPO && git push -u https://${{ secrets.MIRROR_USER }}:${{ secrets.MIRROR_PASSWORD }}@$REMOTE_SERVER/$REMOTE_REPO master

0 comments on commit 27915af

Please sign in to comment.