From 08eeb266325792ccb16f8d63834db9cdf73b9977 Mon Sep 17 00:00:00 2001 From: Sped0n Date: Sat, 4 Nov 2023 21:15:01 +0800 Subject: [PATCH] fix(build.yml): remove unnecessary condition for the 'needs.filter.outputs.any_changed' check in the 'Push artifacts' step --- .github/workflows/build.yml | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 4a806d1..e09153d 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -34,8 +34,7 @@ jobs: needs: [filter] if: | github.ref == 'refs/heads/main' && - github.event.repository.fork == false && - needs.filter.outputs.any_changed == 'true' + github.event.repository.fork == false steps: - name: Checkout uses: actions/checkout@v3 @@ -72,11 +71,10 @@ jobs: run: pnpm install - name: Build - run: | - pnpm run build + run: pnpm run build - name: Push artifacts - if: ${{ github.event.pull_request.merged == true }} + if: ${{ 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"