Skip to content

Commit 21029d6

Browse files
committed
ci: update deprecated "set-output"
1 parent fa567a1 commit 21029d6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ jobs:
8181
shell: bash
8282
run: |
8383
## VARs setup
84-
outputs() { step_id="vars"; for var in "$@" ; do echo steps.${step_id}.outputs.${var}="${!var}"; echo ::set-output name=${var}::${!var}; done; }
84+
outputs() { step_id="vars"; for var in "$@" ; do echo steps.${step_id}.outputs.${var}="${!var}"; echo "${var}=${!var}" >> $GITHUB_OUTPUT; done; }
8585
# toolchain
8686
TOOLCHAIN="nightly" ## default to "nightly" toolchain (required for certain required unstable compiler flags) ## !maint: refactor when stable channel has needed support
8787
# * specify gnu-type TOOLCHAIN for windows; `grcov` requires gnu-style code coverage data files
@@ -135,7 +135,7 @@ jobs:
135135
grcov . --output-type files --ignore build.rs --ignore "vendor/*" --ignore "/*" --ignore "[a-zA-Z]:/*" --excl-br-line "^\s*((debug_)?assert(_eq|_ne)?!|#\[derive\()" | sort --unique
136136
# generate coverage report
137137
grcov . --output-type lcov --output-path "${COVERAGE_REPORT_FILE}" --branch --ignore build.rs --ignore "vendor/*" --ignore "/*" --ignore "[a-zA-Z]:/*" --excl-br-line "^\s*((debug_)?assert(_eq|_ne)?!|#\[derive\()"
138-
echo ::set-output name=report::${COVERAGE_REPORT_FILE}
138+
echo "name=report::${COVERAGE_REPORT_FILE}" >> $GITHUB_OUTPUT
139139
- name: Upload coverage results (to Codecov.io)
140140
uses: codecov/codecov-action@v3
141141
# if: steps.vars.outputs.HAS_CODECOV_TOKEN

0 commit comments

Comments
 (0)