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