fix(artifacts.yml): update condition in 'Build' job to check for 'any_changed' output instead of 'result' output for improved semantics

This commit is contained in:
Sped0n
2023-11-04 18:52:14 +08:00
parent 20f381dbcb
commit 3920e665e0

View File

@@ -10,7 +10,7 @@ jobs:
runs-on: ubuntu-latest
name: Filter
outputs:
result: ${{ steps.changed-files-specific.outputs.any_changed }}
any_changed: ${{ steps.changed-files-specific.outputs.any_changed }}
steps:
- uses: actions/checkout@v3
with:
@@ -31,8 +31,8 @@ jobs:
needs: [filter]
if: |
github.ref == 'refs/heads/main' &&
github.event.repository.fork == 'false' &&
needs.filter.outputs.result == 'true'
github.event.repository.fork == false &&
needs.filter.outputs.any_changed == 'true'
steps:
- name: Checkout
uses: actions/checkout@v3