Skip to content

Commit f1d0966

Browse files
committed
CI: avoid deprecated set-output method
1 parent 10e0d9b commit f1d0966

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/compilation.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
2525
- name: Get short SHA
2626
id: slug
27-
run: echo "::set-output name=sha8::$(echo ${GITHUB_SHA} | cut -c1-8)"
27+
run: printf '%s\n' "sha8=$(printf '%s\n' ${GITHUB_SHA} | cut -c1-8)" >> $GITHUB_OUTPUT
2828

2929
- name: Create tar archive (keep executable bit)
3030
run: tar -zcvf ps2client-${{ steps.slug.outputs.sha8 }}-${{ matrix.os[0] }}-${{ matrix.os[1] }}.tar.gz bin
@@ -48,7 +48,7 @@ jobs:
4848
4949
- name: Get short SHA
5050
id: slug
51-
run: echo "::set-output name=sha8::$(echo ${GITHUB_SHA} | cut -c1-8)"
51+
run: printf '%s\n' "sha8=$(printf '%s\n' ${GITHUB_SHA} | cut -c1-8)" >> $GITHUB_OUTPUT
5252

5353
- name: Create tar archive
5454
run: tar -zcvf ps2client-${{ steps.slug.outputs.sha8 }}-windows-latest-x86_64.tar.gz bin
@@ -68,7 +68,7 @@ jobs:
6868

6969
- name: Get short SHA
7070
id: slug
71-
run: echo "::set-output name=sha8::$(echo ${GITHUB_SHA} | cut -c1-8)"
71+
run: printf '%s\n' "sha8=$(printf '%s\n' ${GITHUB_SHA} | cut -c1-8)" >> $GITHUB_OUTPUT
7272

7373
- name: Download Mac x86_64 artifact
7474
uses: actions/download-artifact@v4

0 commit comments

Comments
 (0)