Skip to content

Commit a6f4d8e

Browse files
committed
build: remove deprecated set-output usages
1 parent 669f14d commit a6f4d8e

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

.github/workflows/ci.yml

+7-7
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
id: get-py-path
3333
shell: bash
3434
run: |
35-
echo "::set-output name=path::$(which python)"
35+
echo "path=$(which python)" >> $GITHUB_OUTPUT
3636
3737
# Set the current month and year (used for cache key)
3838
- name: "Get Date"
@@ -41,7 +41,7 @@ jobs:
4141
# tbh I have yet to find the docs where this output format is
4242
# defined, but I copied this from the official cache action's README.
4343
run: |
44-
echo "::set-output name=date::$(/bin/date -u '+%Y%m')"
44+
echo "date=$(/bin/date -u '+%Y%m')" >> $GITHUB_OUTPUT
4545
shell: bash
4646

4747
# Generate the lockfile
@@ -122,7 +122,7 @@ jobs:
122122
id: get-py-path
123123
shell: bash
124124
run: |
125-
echo "::set-output name=path::$(which python)"
125+
echo "path=$(which python)" >> $GITHUB_OUTPUT
126126
127127
# Set the current month and year (used for cache key)
128128
- name: "Get Date"
@@ -131,7 +131,7 @@ jobs:
131131
# tbh I have yet to find the docs where this output format is
132132
# defined, but I copied this from the official cache action's README.
133133
run: |
134-
echo "::set-output name=date::$(/bin/date -u '+%Y%m')"
134+
echo "date=$(/bin/date -u '+%Y%m')" >> $GITHUB_OUTPUT
135135
shell: bash
136136

137137
# Generate the lockfile
@@ -274,7 +274,7 @@ jobs:
274274
id: get-version
275275
shell: bash
276276
run: |
277-
echo "::set-output name=version::$(cargo pkgid | tr '#' '\n' | tail -n 1 | tr ':' ' ' | awk '{print $2}')"
277+
echo "version=$(cargo pkgid | tr '#' '\n' | tail -n 1 | tr ':' ' ' | awk '{print $2}')" >> $GITHUB_OUTPUT
278278
279279
- name: "(DEBUG) log current version"
280280
shell: bash
@@ -285,13 +285,13 @@ jobs:
285285
id: cargo-version
286286
shell: bash
287287
run: |
288-
echo "::set-output name=new::$(./scripts/newCargoVersion.sh)"
288+
echo "new=$(./scripts/newCargoVersion.sh)" >> $GITHUB_OUTPUT
289289
290290
- name: "Check if new NPM version"
291291
id: npm-version
292292
shell: bash
293293
run: |
294-
echo "::set-output name=new::$(./scripts/newNpmVersion.sh)"
294+
echo "new=$(./scripts/newNpmVersion.sh)" >> $GITHUB_OUTPUT
295295
296296
# Note we don't check for a new python version b/c there are so
297297
# many python artifacts that it is impractical. Instead we just

0 commit comments

Comments
 (0)