Browse Source

Create mirror-repository.yml

冷冷 1 year ago
parent
commit
34772f0a7a
1 changed files with 21 additions and 0 deletions
  1. 21 0
      .github/workflows/mirror-repository.yml

+ 21 - 0
.github/workflows/mirror-repository.yml

@@ -0,0 +1,21 @@
+name: Sync Remote Repository
+
+on:
+  push:
+    branches:
+      - master 
+      - jdk_17
+
+jobs:
+  sync-repo:
+    runs-on: ubuntu-latest
+
+    steps:
+      - uses: actions/checkout@v3
+        with:
+          fetch-depth: 0
+      - uses: yesolutions/mirror-action@master
+        with:
+          REMOTE: 'https://git.pig4cloud.com/pig/CGTM.git'
+          GIT_USERNAME: lengleng
+          GIT_PASSWORD: ${{ secrets.GIT_GOGS_PASSWORD }}