Skip to content

Commit 56f2186

Browse files
committed
Update from deprecated command
1 parent d2719e2 commit 56f2186

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
- name: Check if there is a parent commit
3131
id: check-parent-commit
3232
run: |
33-
echo "::set-output name=sha::$(git rev-parse --verify --quiet HEAD^)"
33+
echo "sha=$(git rev-parse --verify --quiet HEAD^)" >> $GITHUB_OUTPUT
3434
3535
- name: Detect and tag new version
3636
id: check-version

.github/workflows/tests.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,13 +60,14 @@ jobs:
6060
run: |
6161
import hashlib
6262
import sys
63+
import os
6364
6465
python = "py{}.{}".format(*sys.version_info[:2])
6566
payload = sys.version.encode() + sys.executable.encode()
6667
digest = hashlib.sha256(payload).hexdigest()
6768
result = "${{ runner.os }}-{}-{}-pre-commit".format(python, digest[:8])
6869
69-
print("::set-output name=result::{}".format(result))
70+
print("result={}".format(result), file=open(os.environ['GITHUB_OUTPUT'], 'a'))
7071
7172
- name: Restore pre-commit cache
7273
uses: actions/cache@v4

0 commit comments

Comments
 (0)