Skip to content

Commit

Permalink
ci: Use GITHUB_OUTPUT envvar instead of set-output command (#232)
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: #232

Reviewed By: williamspatrick

Differential Revision: D55439795

fbshipit-source-id: 3146a18887fb91e61f76dfae3b9452ca2a0f9934
  • Loading branch information
arunsathiya authored and facebook-github-bot committed Mar 27, 2024
1 parent eaa1917 commit 09a6c3f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/flashy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ jobs:
cp tools/flashy/scripts/run_flashy*.sh tools/flashy/release/scripts
- name: Get short SHA
id: slug
run: echo "::set-output name=sha7::$(echo ${GITHUB_SHA} | cut -c1-7)"
run: echo "sha7=$(echo ${GITHUB_SHA} | cut -c1-7)" >> $GITHUB_OUTPUT
- name: Create Release
id: create_release
uses: actions/create-release@v1
Expand Down

0 comments on commit 09a6c3f

Please sign in to comment.