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"