aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows/mirror.yml
diff options
context:
space:
mode:
authorValentin Popov <valentin@popov.link>2025-06-15 15:10:03 +0300
committerValentin Popov <valentin@popov.link>2025-06-15 15:10:03 +0300
commita045cc87d0a854e65e90a61e702a7733a3b10d36 (patch)
tree06f16d50e561f70599a438e19c0ac65453c228c0 /.github/workflows/mirror.yml
parent8f88b8b9c82f7ec4bbc44bd7034e9064919eed98 (diff)
downloadgo-metatrader4-HEAD.tar.xz
go-metatrader4-HEAD.zip
Update README with new source mirror URL and add GitHub Actions workflow for repository mirroringHEADmasterHEAD
Diffstat (limited to '.github/workflows/mirror.yml')
-rw-r--r--.github/workflows/mirror.yml25
1 files changed, 25 insertions, 0 deletions
diff --git a/.github/workflows/mirror.yml b/.github/workflows/mirror.yml
new file mode 100644
index 0000000..baa8c0c
--- /dev/null
+++ b/.github/workflows/mirror.yml
@@ -0,0 +1,25 @@
+name: Mirror
+
+on:
+ push:
+ branches: [master]
+ pull_request:
+ branches: [master]
+
+permissions:
+ contents: read
+
+jobs:
+ mirror:
+ runs-on: ubuntu-latest
+ steps:
+ - name: Checkout repository
+ uses: actions/checkout@v4
+ with:
+ fetch-depth: 0
+ - name: Mirror to remote repository
+ uses: yesolutions/mirror-action@master
+ with:
+ REMOTE: "https://git.popov.link/go-metatrader4.git"
+ GIT_USERNAME: ${{ secrets.GIT_USERNAME }}
+ GIT_PASSWORD: ${{ secrets.GIT_PASSWORD }}