OSDN Git Service

Actions: mirror to gitlab
authorHiroshi Miura <miurahr@linux.com>
Wed, 4 May 2022 01:44:04 +0000 (10:44 +0900)
committerHiroshi Miura <miurahr@linux.com>
Wed, 4 May 2022 01:55:32 +0000 (10:55 +0900)
Signed-off-by: Hiroshi Miura <miurahr@linux.com>
.github/workflows/build-release-and-upload.yml
.github/workflows/mirror-gitlab-and-run-ci.yml [new file with mode: 0644]

index 1907270..18685ed 100644 (file)
@@ -21,8 +21,6 @@ jobs:
       run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\/v/}
     - uses: gradle/gradle-build-action@v2
     - run: ./gradlew check build assemble
-      env:
-        CI: true
     - name: Create Release
       id: create_release
       uses: actions/create-release@v1
diff --git a/.github/workflows/mirror-gitlab-and-run-ci.yml b/.github/workflows/mirror-gitlab-and-run-ci.yml
new file mode 100644 (file)
index 0000000..567c407
--- /dev/null
@@ -0,0 +1,19 @@
+name: Mirror and run GitLab CI
+
+on: [push]
+
+jobs:
+  mirror-n-ci:
+    runs-on: ubuntu-latest
+    steps:
+    - uses: actions/checkout@v3
+    - name: Mirror + trigger CI
+      uses: SvanBoxel/gitlab-mirror-and-ci-action@0.3
+      with:
+        args: "https://gitlab.com/dictzip/dictzip-java"
+      env:
+        GITLAB_PROJECT_ID: "25072614"
+        GITLAB_HOSTNAME: "gitlab.com"
+        GITLAB_USERNAME: "miurahr"
+        GITLAB_PASSWORD: ${{ secrets.GITLAB_PASSWORD }}
+        GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
\ No newline at end of file