Skip to content
This repository was archived by the owner on Dec 19, 2025. It is now read-only.

Commit 40780bf

Browse files
committed
Replace set-output with environment file
1 parent f1d73e2 commit 40780bf

3 files changed

Lines changed: 6 additions & 6 deletions

File tree

.github/actions/common/action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ runs:
1616
id: npm-cache-dir
1717
shell: bash
1818
run: |
19-
echo "::set-output name=dir::$(npm config get cache)"
19+
echo "npm_cache_dir=$(npm config get cache)" >> $GITHUB_ENV
2020
- name: Cache root node_modules
2121
id: cache-npm-root
2222
uses: actions/cache@v3
2323
with:
2424
path: |
25-
${{ steps.npm-cache-dir.outputs.dir }}
25+
${{ env.npm_cache_dir }}
2626
./node_modules
2727
key: ${{ runner.os }}-node-root-${{ hashFiles('./package-lock.json') }}
2828
restore-keys: |

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,10 @@ jobs:
4646
id: coverage-files
4747
run: |
4848
LCOV_FILES=$(find packages/ -type f -name "lcov.info" | paste -s -d ',' -)
49-
echo "::set-output name=list::$LCOV_FILES"
49+
echo "lcov_files=$LCOV_FILES" >> $GITHUB_ENV
5050
- name: Run codacy-coverage-reporter
5151
if: github.event_name == 'push'
5252
uses: codacy/codacy-coverage-reporter-action@master
5353
with:
5454
project-token: ${{ secrets.CODACY_PROJECT_TOKEN }}
55-
coverage-reports: ${{ steps.coverage-files.outputs.list }}
55+
coverage-reports: ${{ env.lcov_files }}

.github/workflows/docs.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,12 @@ jobs:
3333
- name: Get npm cache directory
3434
id: npm-cache-dir
3535
run: |
36-
echo "::set-output name=dir::$(npm config get cache)"
36+
echo "npm_cache_dir=$(npm config get cache)" >> $GITHUB_ENV
3737
- uses: actions/cache@v3
3838
id: npm-cache
3939
with:
4040
path: |
41-
${{ steps.npm-cache-dir.outputs.dir }}
41+
${{ env.npm_cache_dir }}
4242
docs/node_modules
4343
key: ${{ runner.os }}-node-${{ hashFiles('**/docs/package-lock.json') }}
4444
restore-keys: |

0 commit comments

Comments
 (0)