From 738a3c618af9998746c3c8c465425517a86a7590 Mon Sep 17 00:00:00 2001 From: arf20 <35542215+arf20@users.noreply.github.com> Date: Wed, 24 Jan 2024 20:02:12 +0100 Subject: Fix workflow --- .github/workflows/mirror.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to '.github/workflows') 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 -- cgit v1.2.3