fix(build.yml): remove unnecessary condition for the 'needs.filter.outputs.any_changed' check in the 'Push artifacts' step

This commit is contained in:
Sped0n
2023-11-04 21:15:01 +08:00
parent ecf340dc14
commit 08eeb26632

View File

@@ -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"