Skip to content

Commit

Permalink
ci: Use GITHUB_OUTPUT envvar instead of set-output command (#2368)
Browse files Browse the repository at this point in the history
Summary:
`save-state` and `set-output` commands used in GitHub Actions are deprecated and [GitHub recommends using environment files](https://github.blog/changelog/2023-07-24-github-actions-update-on-save-state-and-set-output-commands/).

This PR updates the usage of `set-output` to `$GITHUB_OUTPUT`

Instructions for envvar usage from GitHub docs:

https://docs.github.com/en/actions/using-workflows/workflow-commands-for-github-actions#setting-an-output-parameter

Pull Request resolved: #2368

Reviewed By: wenhaizhu

Differential Revision: D57079874

Pulled By: joe1234wu

fbshipit-source-id: 5800df3da7d9e5c3dd4c3d738141656d8f45b59b
  • Loading branch information
arunsathiya authored and facebook-github-bot committed May 7, 2024
1 parent 4bd4952 commit e5e9876
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/coordinator-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ jobs:

- name: Set output
id: vars
run: echo ::set-output name=ref::${GITHUB_REF##*/}
run: echo "ref=${GITHUB_REF##*/}" >> $GITHUB_OUTPUT

- name: Tag docker image
run: |
Expand Down

0 comments on commit e5e9876

Please sign in to comment.