Skip to content

Commit 6a72730

Browse files
arunsathiyaastuyve
andauthored
ci: Use GITHUB_OUTPUT envvar instead of set-output command (#494)
`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 Co-authored-by: AJ Stuyvenberg <[email protected]>
1 parent 31f278f commit 6a72730

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020

2121
- name: Get yarn cache directory path
2222
id: yarn-cache-dir-path
23-
run: echo "::set-output name=dir::$(yarn cache dir)"
23+
run: echo "dir=$(yarn cache dir)" >> "$GITHUB_OUTPUT"
2424

2525
- name: Restore node modules from cache
2626
id: cache-node-modules
@@ -56,7 +56,7 @@ jobs:
5656

5757
- name: Get yarn cache directory path
5858
id: yarn-cache-dir-path
59-
run: echo "::set-output name=dir::$(yarn cache dir)"
59+
run: echo "dir=$(yarn cache dir)" >> "$GITHUB_OUTPUT"
6060

6161
- name: Restore node modules from cache
6262
id: cache-node-modules

.github/workflows/update-snapshots.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525

2626
- name: Get yarn cache directory path
2727
id: yarn-cache-dir-path
28-
run: echo "::set-output name=dir::$(yarn cache dir)"
28+
run: echo "dir=$(yarn cache dir)" >> "$GITHUB_OUTPUT"
2929

3030
- name: Restore node modules from cache
3131
id: cache-node-modules

0 commit comments

Comments
 (0)