Skip to content

Commit 47f41bc

Browse files
arunsathiyafacebook-github-bot
authored andcommitted
ci: Use GITHUB_OUTPUT envvar instead of set-output command (#529)
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: #529 Reviewed By: joe1234wu Differential Revision: D57408058 Pulled By: wuman fbshipit-source-id: a2173be292d2ad2f4b62bc4964a0bdac0f26bd01
1 parent 13ed673 commit 47f41bc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/docker-publish.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ jobs:
9898

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

103103
- name: Pull image for this commit from registry
104104
run: |

0 commit comments

Comments
 (0)