Skip to content

Commit 85d06c4

Browse files
committed
Change build.outputs.hashes to use the GITHUB_OUTPUT method
1 parent 27eabc8 commit 85d06c4

2 files changed

Lines changed: 5 additions & 4 deletions

File tree

.github/workflows/publish.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,7 @@ on:
66
- "*"
77

88
permissions:
9-
contents: "read"
10-
# Needed to access the workflow's OIDC identity.
11-
id-token: "write"
9+
contents: read
1210

1311
jobs:
1412

@@ -42,7 +40,7 @@ jobs:
4240
- name: "Generate hashes"
4341
id: hash
4442
run: |
45-
cd dist && echo "::set-output name=hashes::$(sha256sum * | base64 -w0)"
43+
cd dist && echo "hashes=$(sha256sum * | base64 -w0)" >> $GITHUB_OUTPUT
4644
4745
- name: "Upload dists"
4846
uses: "actions/upload-artifact@83fd05a356d7e2593de66fc9913b3002723633cb"
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
### Changed
2+
3+
- Changed the `build.outputs.hashes` state to use `$GITHUB_OUTPUT` instead of deprecated `::set-output` method.

0 commit comments

Comments
 (0)