aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows/mirror.yml
diff options
context:
space:
mode:
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 }}