Skip to content

Commit 1948bc3

Browse files
committed
set output was deprecated, stop using it.
1 parent ddd43d3 commit 1948bc3

File tree

1 file changed

+20
-20
lines changed

1 file changed

+20
-20
lines changed

.github/workflows/build.yml

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -45,15 +45,15 @@ jobs:
4545
id: set-metadata
4646
run: |
4747
./libexec/metadata ruby_platform | tee ruby_platform
48-
echo "::set-output name=RUBY_PLATFORM::$(cat ruby_platform)"
48+
echo "RUBY_PLATFORM=$(cat ruby_platform)" >> $GITHUB_OUTPUT
4949
./libexec/metadata gem_platform | tee gem_platform
50-
echo "::set-output name=GEM_PLATFORM::$(cat gem_platform)"
50+
echo "GEM_PLATFORM=$(cat gem_platform)" >> $GITHUB_OUTPUT
5151
./libexec/metadata gem_version | tee gem_version
52-
echo "::set-output name=GEM_VERSION::$(cat gem_version)"
52+
echo "GEM_VERSION=$(cat gem_version)" >> $GITHUB_OUTPUT
5353
./libexec/metadata node_version | tee node_version
54-
echo "::set-output name=NODE_VERSION::$(cat node_version)"
54+
echo "NODE_VERSION=$(cat node_version)" >> $GITHUB_OUTPUT
5555
./libexec/metadata libv8_version | tee libv8_version
56-
echo "::set-output name=LIBV8_VERSION::$(cat libv8_version)"
56+
echo "LIBV8_VERSION=$(cat libv8_version)" >> $GITHUB_OUTPUT
5757
- name: Download Node.js
5858
run: |
5959
./libexec/download-node ${{ steps.set-metadata.outputs.NODE_VERSION }}
@@ -196,8 +196,8 @@ jobs:
196196
echo 'aarch64-linux'
197197
;;
198198
esac | tee ruby_target_platform
199-
echo "::set-output name=target_platform::$(cat target_platform)"
200-
echo "::set-output name=ruby_target_platform::$(cat ruby_target_platform)"
199+
echo "target_platform=$(cat target_platform)" >> $GITHUB_OUTPUT
200+
echo "ruby_target_platform=$(cat ruby_target_platform)" >> $GITHUB_OUTPUT
201201
- name: Start container
202202
id: container
203203
run: |
@@ -209,10 +209,10 @@ jobs:
209209
echo 'ruby:3.4-alpine'
210210
;;
211211
esac | tee container_image
212-
echo "::set-output name=image::$(cat container_image)"
212+
echo "image=$(cat container_image)" >> $GITHUB_OUTPUT
213213
docker run --rm -d -v "${PWD}":"${PWD}" -w "${PWD}" --platform linux/amd64 -e RUBY_TARGET_PLATFORM=${{ steps.platform.outputs.ruby_target_platform }} -e TARGET_PLATFORM=${{ steps.platform.outputs.target_platform }} $(cat container_image) /bin/sleep 64d | tee container_id
214214
docker exec -w "${PWD}" $(cat container_id) uname -a
215-
echo "::set-output name=id::$(cat container_id)"
215+
echo "id=$(cat container_id)" >> $GITHUB_OUTPUT
216216
- name: Install Alpine system dependencies
217217
if: ${{ matrix.libc == 'musl' }}
218218
run: docker exec -w "${PWD}" ${{ steps.container.outputs.id }} apk add --no-cache build-base linux-headers bash python3 git curl tar cmake clang ccache
@@ -237,15 +237,15 @@ jobs:
237237
id: set-metadata
238238
run: |
239239
docker exec -w "${PWD}" ${{ steps.container.outputs.id }} ./libexec/metadata ruby_platform | tee ruby_platform
240-
echo "::set-output name=RUBY_PLATFORM::$(cat ruby_platform)"
240+
echo "RUBY_PLATFORM=$(cat ruby_platform)" >> $GITHUB_OUTPUT
241241
docker exec -w "${PWD}" ${{ steps.container.outputs.id }} ./libexec/metadata gem_platform | tee gem_platform
242-
echo "::set-output name=GEM_PLATFORM::$(cat gem_platform)"
242+
echo "GEM_PLATFORM=$(cat gem_platform)" >> $GITHUB_OUTPUT
243243
docker exec -w "${PWD}" ${{ steps.container.outputs.id }} ./libexec/metadata gem_version | tee gem_version
244-
echo "::set-output name=GEM_VERSION::$(cat gem_version)"
244+
echo "GEM_VERSION=$(cat gem_version)" >> $GITHUB_OUTPUT
245245
docker exec -w "${PWD}" ${{ steps.container.outputs.id }} ./libexec/metadata node_version | tee node_version
246-
echo "::set-output name=NODE_VERSION::$(cat node_version)"
246+
echo "NODE_VERSION=$(cat node_version)" >> $GITHUB_OUTPUT
247247
docker exec -w "${PWD}" ${{ steps.container.outputs.id }} ./libexec/metadata libv8_version | tee libv8_version
248-
echo "::set-output name=LIBV8_VERSION::$(cat libv8_version)"
248+
echo "LIBV8_VERSION=$(cat libv8_version)" >> $GITHUB_OUTPUT
249249
- name: Download Node.js
250250
run: |
251251
docker exec -w "${PWD}" ${{ steps.container.outputs.id }} ./libexec/download-node ${{ steps.set-metadata.outputs.NODE_VERSION }}
@@ -327,7 +327,7 @@ jobs:
327327
id: set-metadata
328328
run: |
329329
ruby -e 'puts Gem.platforms.last.to_s' | tee gem_platform
330-
echo "::set-output name=GEM_PLATFORM::$(cat gem_platform)"
330+
echo "GEM_PLATFORM=$(cat gem_platform)" >> $GITHUB_OUTPUT
331331
- name: Download a single artifact
332332
uses: actions/download-artifact@v4
333333
with:
@@ -360,7 +360,7 @@ jobs:
360360
id: set-metadata
361361
run: |
362362
ruby -e 'puts Gem.platforms.last.to_s.gsub(/-darwin-?\d+/, "-darwin")' | tee gem_platform
363-
echo "::set-output name=GEM_PLATFORM::$(cat gem_platform)"
363+
echo "GEM_PLATFORM=$(cat gem_platform)" >> $GITHUB_OUTPUT
364364
- name: Download a single artifact
365365
uses: actions/download-artifact@v4
366366
with:
@@ -413,7 +413,7 @@ jobs:
413413
if: ${{ matrix.platform != 'amd64' }}
414414
run: |
415415
docker run --privileged --rm tonistiigi/binfmt:latest --install ${{ matrix.platform }} | tee platforms.json
416-
echo "::set-output name=platforms::$(cat platforms.json)"
416+
echo "platforms=$(cat platforms.json)" >> $GITHUB_OUTPUT
417417
- name: Start container
418418
id: container
419419
run: |
@@ -425,10 +425,10 @@ jobs:
425425
echo 'ruby:${{ matrix.version }}-alpine'
426426
;;
427427
esac | tee container_image
428-
echo "::set-output name=image::$(cat container_image)"
428+
echo "image=$(cat container_image)" >> $GITHUB_OUTPUT
429429
docker run --rm -d -v "${PWD}":"${PWD}" -w "${PWD}" --platform linux/${{ matrix.platform }} $(cat container_image) /bin/sleep 64d | tee container_id
430430
docker exec -w "${PWD}" $(cat container_id) uname -a
431-
echo "::set-output name=id::$(cat container_id)"
431+
echo "id=$(cat container_id)" >> $GITHUB_OUTPUT
432432
- name: Install Alpine system dependencies
433433
if: ${{ matrix.libc == 'musl' }}
434434
run: docker exec -w "${PWD}" ${{ steps.container.outputs.id }} apk add --no-cache build-base git libstdc++
@@ -440,7 +440,7 @@ jobs:
440440
id: set-metadata
441441
run: |
442442
docker exec -w "${PWD}" ${{ steps.container.outputs.id }} ruby -e 'puts Gem::Platform.local.tap { |p| RUBY_PLATFORM =~ /musl/ && p.version.nil? and p.instance_eval { @version = "musl" } }.to_s' | tee gem_platform
443-
echo "::set-output name=GEM_PLATFORM::$(cat gem_platform)"
443+
echo "GEM_PLATFORM=$(cat gem_platform)" >> $GITHUB_OUTPUT
444444
- name: Download a single artifact
445445
uses: actions/download-artifact@v4
446446
with:

0 commit comments

Comments
 (0)