🔥 3-day streak
GitHub Actions (GH-200)8 / 142
Question 8 of 142

You maintain a composite action that runs a linter and then, only when the linter step fails, uploads a diagnostic report. In the action.yml you add a step with `uses: actions/upload-artifact@v4` and want it to execute regardless of prior step outcome but only when the linting step specifically failed. The linting step has `id: lint`. Which configuration on the upload step correctly achieves this within a composite action?

Reviewed for accuracy · Report an issueNext question