Homebrew / actions

🚀 Homebrew's GitHub Actions
BSD 2-Clause "Simplified" License
123 stars 39 forks source link

Replace deprecated `set-output` command #336

Closed nandahkrishna closed 1 year ago

nandahkrishna commented 1 year ago

See here: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/

TL;DR: The set-output command has been deprecated and we should be writing to the $GITHUB_OUTPUT environment file instead.

Old syntax:

- name: Set output
  run: echo "::set-output name={name}::{value}"

New syntax:

- name: Set output
  run: echo "{name}={value}" >> $GITHUB_OUTPUT
nandahkrishna commented 1 year ago

Merging since the comment was addressed.

Bo98 commented 1 year ago

Looks good, thanks!