chore(.github/workflows): replace set-output commands (#18762)
Following deprecation, c.f. https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
The check that this change worked ok is that the action produces a correctly named artifact