Backport PR #37812 on branch 1.1.x (CI: The `set-env` and `add-path` commands are deprecated and will be disabled on November 16th.)
Backport PR #37812: CI: The `set-env` and `add-path` commands are deprecated and will be disabled on November 16th.