From c990583718c1105d6d3814676a50a7bbd09fef3b Mon Sep 17 00:00:00 2001 From: arf20 Date: Tue, 16 Apr 2024 17:45:18 +0200 Subject: Subscription howto and mirror workflow --- .github/workflows/mirror.yml | 18 ++++++++++++++++++ index.php | 6 ++++++ 2 files changed, 24 insertions(+) create mode 100644 .github/workflows/mirror.yml diff --git a/.github/workflows/mirror.yml b/.github/workflows/mirror.yml new file mode 100644 index 0000000..0884624 --- /dev/null +++ b/.github/workflows/mirror.yml @@ -0,0 +1,18 @@ +name: Mirror to ARFNET + +on: [push] + +env: + REMOTE_REPO: arfnet2-lists + 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 + diff --git a/index.php b/index.php index cc0b1bd..8626ffb 100644 --- a/index.php +++ b/index.php @@ -29,6 +29,12 @@ $lists = array_diff($lists, array(".", "..")); } ?> +
+

Subscription

+ -- cgit v1.2.3