From 29676d5c4b6a0bc67db3db6ecc9eeac3e65b6e1a Mon Sep 17 00:00:00 2001 From: shanmite Date: Wed, 29 Jun 2022 11:40:23 +0800 Subject: [PATCH] ci: mirror to gitlab --- .github/workflows/mirror.yml | 19 +++++++++++++++++++ README.md | 8 ++++++-- 2 files changed, 25 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/mirror.yml diff --git a/.github/workflows/mirror.yml b/.github/workflows/mirror.yml new file mode 100644 index 0000000..22c3ec4 --- /dev/null +++ b/.github/workflows/mirror.yml @@ -0,0 +1,19 @@ +name: Mirror and run GitLab CI + +on: [push] + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v1 + - name: Mirror + trigger CI + uses: SvanBoxel/gitlab-mirror-and-ci-action@master + with: + args: "https://gitlab.com/shanmiteko/LotteryAutoScript" + env: + GITLAB_HOSTNAME: "gitlab.com" + GITLAB_USERNAME: "shanmiteko" + GITLAB_PASSWORD: ${{ secrets.GITLAB_PASSWORD }} + GITLAB_PROJECT_ID: "36365601" + GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} \ No newline at end of file diff --git a/README.md b/README.md index d7db92a..531b544 100644 --- a/README.md +++ b/README.md @@ -18,10 +18,14 @@ [Github仓库链接](https://github.com/shanmiteko/LotteryAutoScript) -[![Package Node.js project into an executable](https://github.com/shanmiteko/LotteryAutoScript/actions/workflows/pkg.yml/badge.svg)](https://github.com/shanmiteko/LotteryAutoScript/actions/workflows/pkg.yml)
-[![Build and push Docker images](https://github.com/shanmiteko/LotteryAutoScript/actions/workflows/docker.yml/badge.svg)](https://github.com/shanmiteko/LotteryAutoScript/actions/workflows/docker.yml)
+[![Package Node.js project into an executable](https://github.com/shanmiteko/LotteryAutoScript/actions/workflows/pkg.yml/badge.svg)](https://github.com/shanmiteko/LotteryAutoScript/actions/workflows/pkg.yml) + +[![Build and push Docker images](https://github.com/shanmiteko/LotteryAutoScript/actions/workflows/docker.yml/badge.svg)](https://github.com/shanmiteko/LotteryAutoScript/actions/workflows/docker.yml) + [![Publishing to NPM](https://github.com/shanmiteko/LotteryAutoScript/actions/workflows/npmp.yml/badge.svg)](https://github.com/shanmiteko/LotteryAutoScript/actions/workflows/npmp.yml) +[![Mirror and run GitLab CI](https://github.com/shanmiteko/LotteryAutoScript/actions/workflows/mirror.yml/badge.svg)](https://github.com/shanmiteko/LotteryAutoScript/actions/workflows/mirror.yml) + 已实现功能: - 监控用户转发