Skip to content

Commit

Permalink
Add git mirror actions workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
arf20 committed Feb 24, 2024
1 parent 291156a commit d6d47d9
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: mail-conf
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 d6d47d9

Please sign in to comment.