$ ./guess_the_languageDevOps
DevOps · medium · #272

When does this GitHub Actions step run?

- name: Upload test logs
  if: always()
  uses: actions/upload-artifact@v4
  1. Even when an earlier step failed
  2. Only when all prior steps have passed
  3. Only on the default branch
  4. 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 ▸