summaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/mirror.yml6
1 files changed, 5 insertions, 1 deletions
diff --git a/.github/workflows/mirror.yml b/.github/workflows/mirror.yml
index 046fdd8..15285a5 100644
--- a/.github/workflows/mirror.yml
+++ b/.github/workflows/mirror.yml
@@ -2,6 +2,10 @@ name: Mirror to ARFNET
on: [push]
+env:
+ REMOTE_REPO: arfnet2
+ REMOTE_SERVER: git.arf20.com
+
jobs:
push-mirror:
runs-on: ubuntu-latest
@@ -10,5 +14,5 @@ jobs:
run: git clone https://github.com/${{ github.repository }}
- name: Push to remote repo
- run: cd ${{ github.workspace }} && git push -u https://${{ secrets.MIRROR_USER }}:${{ secrets.MIRROR_PASSWORD }}@git.arf20.com/arfnet2 master
+ run: cd $REMOTE_REPO && git push -u https://${{ secrets.MIRROR_USER }}:${{ secrets.MIRROR_PASSWORD }}@$REMOTE_SERVER/$REMOTE_REPO master