From 8591f596d0611d89fc52fea4e8c9865ae1ce9e89 Mon Sep 17 00:00:00 2001 From: Sped0n Date: Sat, 4 Nov 2023 21:24:58 +0800 Subject: [PATCH] fix(build.yml): update push artifacts step condition to include push event in addition to merged pull requests to ensure artifacts are pushed on push events as well --- .github/workflows/build.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index e09153d..f84a7b7 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -3,6 +3,9 @@ on: push: branches: - main + pull_request: + branches: + - main workflow_dispatch: permissions: @@ -74,7 +77,7 @@ jobs: run: pnpm run build - name: Push artifacts - if: ${{ github.event.pull_request.merged == true && needs.filter.outputs.any_changed == 'true' }} + if: ${{ (github.event_name == 'push' || github.event.pull_request.merged == true) && needs.filter.outputs.any_changed == 'true' }} run: | git config --global user.email "noreply@github.com" git config --global user.name "CI"