From a7d054ff995d18f1bfd58d7cbd14dbf8e332899f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=A5=E6=B5=A9?= Date: Tue, 13 Aug 2024 22:12:11 +0800 Subject: [PATCH] chore: Update CI workflow to only trigger on push to the main branch --- .gitea/workflows/ci.yaml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.gitea/workflows/ci.yaml b/.gitea/workflows/ci.yaml index 3d1eab9..55606bd 100644 --- a/.gitea/workflows/ci.yaml +++ b/.gitea/workflows/ci.yaml @@ -1,8 +1,10 @@ name: CI on: - - push - - pull_request + push: + branches: + - main + pull_request: jobs: cache-and-install: @@ -22,7 +24,7 @@ jobs: uses: actions/setup-node@v4 with: node-version: 20 - cache: "pnpm" + cache: 'pnpm' - name: Install dependencies run: pnpm install # --frozen-lockfile