Skip to content

Commit 023e50f

Browse files
authored
ci: Use GITHUB_OUTPUT envvar instead of set-output command
`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
1 parent e0f4912 commit 023e50f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.github/workflows/documentation.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
# Cache dependencies
3131
- name: Get pip cache dir
3232
id: pip-cache
33-
run: echo "::set-output name=dir::$(pip cache dir)"
33+
run: echo "dir=$(pip cache dir)" >> "$GITHUB_OUTPUT"
3434

3535
- name: Cache dependencies
3636
uses: actions/cache@v2

.github/workflows/tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
# Cache dependencies
2929
- name: Get pip cache dir
3030
id: pip-cache
31-
run: echo "::set-output name=dir::$(pip cache dir)"
31+
run: echo "dir=$(pip cache dir)" >> "$GITHUB_OUTPUT"
3232

3333
- name: Cache dependencies
3434
uses: actions/cache@v2

0 commit comments

Comments
 (0)