From 70b71aa4f92cd4e6c6ac9b7d2d3b9169df51a4fb Mon Sep 17 00:00:00 2001 From: keiko233 Date: Thu, 16 Nov 2023 10:59:27 +0800 Subject: [PATCH] chore: add updater workflow --- .github/workflows/updater.yaml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/updater.yaml diff --git a/.github/workflows/updater.yaml b/.github/workflows/updater.yaml new file mode 100644 index 00000000..aa37706d --- /dev/null +++ b/.github/workflows/updater.yaml @@ -0,0 +1,31 @@ +name: Updater CI + +on: workflow_dispatch + +jobs: + release-update: + runs-on: ubuntu-latest + if: | + startsWith(github.repository, 'keiko233') + steps: + - name: Checkout repository + uses: actions/checkout@v3 + + - name: Install Node + uses: actions/setup-node@v3 + with: + node-version: "20" + + - uses: pnpm/action-setup@v2 + name: Install pnpm + with: + version: 8 + run_install: false + + - name: Pnpm install + run: pnpm i + + - name: Release updater file + run: pnpm updater + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}