Mirror workflow #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |