When does this GitHub Actions step run?
- name: Upload test logs if: always() uses: actions/upload-artifact@v4
- Even when an earlier step failed
- Only when all prior steps have passed
- Only on the default branch
- Only when the run is re-tried
Steps normally have an implicit success() condition; always() makes this one run regardless of earlier failures (and even on cancellation), which suits collecting logs.
Play DevOps ▸