From 32aa00acc302b76d6f812ae50b594fea4a9bc627 Mon Sep 17 00:00:00 2001 From: Charles7c Date: Tue, 15 Apr 2025 21:10:55 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=20action=20=E8=84=9A?= =?UTF-8?q?=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../update-continew-admin-contribs.yaml | 50 ------------------- .../workflows/update-continew-contribs.yaml | 14 +++--- .../update-continew-starter-contribs.yaml | 50 ------------------- 3 files changed, 7 insertions(+), 107 deletions(-) delete mode 100644 .github/workflows/update-continew-admin-contribs.yaml delete mode 100644 .github/workflows/update-continew-starter-contribs.yaml diff --git a/.github/workflows/update-continew-admin-contribs.yaml b/.github/workflows/update-continew-admin-contribs.yaml deleted file mode 100644 index 8543ff3..0000000 --- a/.github/workflows/update-continew-admin-contribs.yaml +++ /dev/null @@ -1,50 +0,0 @@ -name: update-continew-admin-contributors-svg - -on: - workflow_dispatch: - inputs: - logLevel: - description: 'Log level' - required: true - default: 'warning' - type: choice - options: - - info - - warning - - debug - # Schedule the interval of the checks. - schedule: - - cron: 00 17 * * * - -jobs: - update-svg: - name: Update contributors SVG - runs-on: ubuntu-latest - steps: - - name: Checkout - uses: actions/checkout@v3 - - - name: Install pnpm - uses: pnpm/action-setup@v4 - with: - version: 7 - - - name: Set node version to 16.x - uses: actions/setup-node@v3 - with: - node-version: 16.x - registry-url: https://registry.npmjs.org/ - cache: "pnpm" - - - name: Install deps - run: pnpm install - - - name: Run generation script - run: pnpm tsx src/main.ts -t ${{ secrets.TOKEN }} -o continew-org -r continew-admin - - - name: Update image - run: | - git config user.email "charles7c@126.com" - git config user.name "Charles7c" - git add . - git commit -m "workflow: update image" && git push origin main || exit 0 diff --git a/.github/workflows/update-continew-contribs.yaml b/.github/workflows/update-continew-contribs.yaml index 4b15103..40a5d3b 100644 --- a/.github/workflows/update-continew-contribs.yaml +++ b/.github/workflows/update-continew-contribs.yaml @@ -39,7 +39,13 @@ jobs: - name: Install deps run: pnpm install - - name: Run generation script + - name: Run continew-admin svg generation script + run: pnpm tsx src/main.ts -t ${{ secrets.TOKEN }} -o continew-org -r continew-admin + + - name: Run continew-starter svg generation script + run: pnpm tsx src/main.ts -t ${{ secrets.TOKEN }} -o continew-org -r continew-starter + + - name: Run continew-org svg generation script run: pnpm tsx src/main.ts -t ${{ secrets.TOKEN }} -o continew-org -e continew-cloud - name: Copy @@ -53,10 +59,4 @@ jobs: target: ${{ secrets.SERVER_PATH }} strip_components: 1 - - name: Update image - run: | - git config user.email "charles7c@126.com" - git config user.name "Charles7c" - git add . - git commit -m "workflow: update image" && git push origin main || exit 0 diff --git a/.github/workflows/update-continew-starter-contribs.yaml b/.github/workflows/update-continew-starter-contribs.yaml deleted file mode 100644 index e8ef04d..0000000 --- a/.github/workflows/update-continew-starter-contribs.yaml +++ /dev/null @@ -1,50 +0,0 @@ -name: update-continew-starter-contributors-svg - -on: - workflow_dispatch: - inputs: - logLevel: - description: 'Log level' - required: true - default: 'warning' - type: choice - options: - - info - - warning - - debug - # Schedule the interval of the checks. - schedule: - - cron: 00 17 * * * - -jobs: - update-svg: - name: Update contributors SVG - runs-on: ubuntu-latest - steps: - - name: Checkout - uses: actions/checkout@v3 - - - name: Install pnpm - uses: pnpm/action-setup@v4 - with: - version: 7 - - - name: Set node version to 16.x - uses: actions/setup-node@v3 - with: - node-version: 16.x - registry-url: https://registry.npmjs.org/ - cache: "pnpm" - - - name: Install deps - run: pnpm install - - - name: Run generation script - run: pnpm tsx src/main.ts -t ${{ secrets.TOKEN }} -o continew-org -r continew-starter - - - name: Update image - run: | - git config user.email "charles7c@126.com" - git config user.name "Charles7c" - git add . - git commit -m "workflow: update image" && git push origin main || exit 0