summaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
authorarf20 <35542215+arf20@users.noreply.github.com>2024-01-24 19:56:19 +0100
committerGitHub <noreply@github.com>2024-01-24 19:56:19 +0100
commitb7934d4771f7893889ee8eccc64910a2215ea60b (patch)
tree0337d904079e05a522c1255c1c180b85156de02f /.github/workflows
parent52abaf4f4218c40eee9ac1bf6def3616dac26371 (diff)
downloadarfnet2-b7934d4771f7893889ee8eccc64910a2215ea60b.tar.gz
arfnet2-b7934d4771f7893889ee8eccc64910a2215ea60b.zip
Add actions workflow to mirror ARFNET
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/mirror.yml14
1 files changed, 14 insertions, 0 deletions
diff --git a/.github/workflows/mirror.yml b/.github/workflows/mirror.yml
new file mode 100644
index 0000000..046fdd8
--- /dev/null
+++ b/.github/workflows/mirror.yml
@@ -0,0 +1,14 @@
+name: Mirror to ARFNET
+
+on: [push]
+
+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 ${{ github.workspace }} && git push -u https://${{ secrets.MIRROR_USER }}:${{ secrets.MIRROR_PASSWORD }}@git.arf20.com/arfnet2 master
+