Skip to content

Commit ab87e73

Browse files
jongwooodbaileychess
authored andcommitted
Replace deprecated command with environment file (google#7921)
Co-authored-by: Derek Bailey <derekbailey@google.com>
1 parent 17b9d88 commit ab87e73

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

.github/workflows/build.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -60,11 +60,11 @@ jobs:
6060
- name: Generate SLSA subjects - clang
6161
if: matrix.cxx == 'clang++-12' && startsWith(github.ref, 'refs/tags/')
6262
id: hash-clang
63-
run: echo "::set-output name=hashes::$(sha256sum Linux.flatc.binary.${{ matrix.cxx }}.zip | base64 -w0)"
63+
run: echo "hashes=$(sha256sum Linux.flatc.binary.${{ matrix.cxx }}.zip | base64 -w0)" >> $GITHUB_OUTPUT
6464
- name: Generate SLSA subjects - gcc
6565
if: matrix.cxx == 'g++-10' && startsWith(github.ref, 'refs/tags/')
6666
id: hash-gcc
67-
run: echo "::set-output name=hashes::$(sha256sum Linux.flatc.binary.${{ matrix.cxx }}.zip | base64 -w0)"
67+
run: echo "hashes=$(sha256sum Linux.flatc.binary.${{ matrix.cxx }}.zip | base64 -w0)" >> $GITHUB_OUTPUT
6868

6969
build-linux-no-file-tests:
7070
name: Build Linux with -DFLATBUFFERS_NO_FILE_TESTS
@@ -166,7 +166,7 @@ jobs:
166166
if: startsWith(github.ref, 'refs/tags/')
167167
id: hash
168168
shell: bash
169-
run: echo "::set-output name=hashes::$(sha256sum Windows.flatc.binary.zip | base64 -w0)"
169+
run: echo "hashes=$(sha256sum Windows.flatc.binary.zip | base64 -w0)" >> $GITHUB_OUTPUT
170170

171171
build-windows-2017:
172172
name: Build Windows 2017
@@ -267,7 +267,7 @@ jobs:
267267
- name: Generate SLSA subjects
268268
if: startsWith(github.ref, 'refs/tags/')
269269
id: hash
270-
run: echo "::set-output name=hashes::$(shasum -a 256 MacIntel.flatc.binary.zip | base64)"
270+
run: echo "hashes=$(shasum -a 256 MacIntel.flatc.binary.zip | base64)" >> $GITHUB_OUTPUT
271271

272272
build-mac-universal:
273273
permissions:
@@ -310,7 +310,7 @@ jobs:
310310
- name: Generate SLSA subjects
311311
if: startsWith(github.ref, 'refs/tags/')
312312
id: hash
313-
run: echo "::set-output name=hashes::$(shasum -a 256 Mac.flatc.binary.zip | base64)"
313+
run: echo "hashes=$(shasum -a 256 Mac.flatc.binary.zip | base64)" >> $GITHUB_OUTPUT
314314

315315
build-android:
316316
name: Build Android (on Linux)
@@ -561,7 +561,7 @@ jobs:
561561
echo "$MAC_DIGESTS" | base64 -d >> checksums.txt
562562
echo "$MACINTEL_DIGESTS" | base64 -d >> checksums.txt
563563
echo "$WINDOWS_DIGESTS" | base64 -d >> checksums.txt
564-
echo "::set-output name=digests::$(cat checksums.txt | base64 -w0)"
564+
echo "digests=$(cat checksums.txt | base64 -w0)" >> $GITHUB_OUTPUT
565565
566566
provenance:
567567
if: startsWith(github.ref, 'refs/tags/')

0 commit comments

Comments
 (0)