From 436f2a84835f61d4d70ac5c1159a274c3d729863 Mon Sep 17 00:00:00 2001 From: Amumu Date: Tue, 16 Apr 2024 10:08:59 +0800 Subject: [PATCH] chore: ci improve (#335) * chore: ci improve * chore: fix repo --- .github/workflows/deploy2io.yml | 1 + .github/workflows/reademe-contributors.yml | 1 + .github/workflows/sync-docs-to-React-website.yml | 1 + .github/workflows/sync-docs-to-Vue-website.yml | 1 + .github/workflows/sync-gitee.yml | 1 + 5 files changed, 5 insertions(+) diff --git a/.github/workflows/deploy2io.yml b/.github/workflows/deploy2io.yml index 56dc108f..954bbee4 100644 --- a/.github/workflows/deploy2io.yml +++ b/.github/workflows/deploy2io.yml @@ -11,6 +11,7 @@ on: jobs: copy: runs-on: ubuntu-latest + if: github.repository == 'hellof2e/quark-design' steps: - uses: actions/checkout@v2 # 会有很多 npm 包在外层,link 使用 diff --git a/.github/workflows/reademe-contributors.yml b/.github/workflows/reademe-contributors.yml index df2e4a44..ecca1520 100644 --- a/.github/workflows/reademe-contributors.yml +++ b/.github/workflows/reademe-contributors.yml @@ -12,6 +12,7 @@ jobs: contrib-readme-en-job: runs-on: ubuntu-latest name: A job to automate contrib in readme + if: github.repository == 'hellof2e/quark-design' steps: - name: Contribute List uses: akhilmhdh/contributors-readme-action@v2.3.4 diff --git a/.github/workflows/sync-docs-to-React-website.yml b/.github/workflows/sync-docs-to-React-website.yml index 222a11b1..d77e5a5d 100644 --- a/.github/workflows/sync-docs-to-React-website.yml +++ b/.github/workflows/sync-docs-to-React-website.yml @@ -11,6 +11,7 @@ on: jobs: copy: runs-on: ubuntu-latest + if: github.repository == 'hellof2e/quark-design' steps: - uses: actions/checkout@v2 - run: yarn install diff --git a/.github/workflows/sync-docs-to-Vue-website.yml b/.github/workflows/sync-docs-to-Vue-website.yml index c3f76c9b..0ef033e9 100644 --- a/.github/workflows/sync-docs-to-Vue-website.yml +++ b/.github/workflows/sync-docs-to-Vue-website.yml @@ -11,6 +11,7 @@ on: jobs: copy: runs-on: ubuntu-latest + if: github.repository == 'hellof2e/quark-design' steps: - uses: actions/checkout@v2 - run: yarn install diff --git a/.github/workflows/sync-gitee.yml b/.github/workflows/sync-gitee.yml index 8546b1c1..8e8c765c 100644 --- a/.github/workflows/sync-gitee.yml +++ b/.github/workflows/sync-gitee.yml @@ -5,6 +5,7 @@ on: [ push, delete, create ] jobs: deploy-site-sync-gitee: runs-on: ubuntu-latest + if: github.repository == 'hellof2e/quark-design' steps: - name: Sync to Gitee uses: wearerequired/git-mirror-action@master