Skip to content

Commit 2eea58e

Browse files
Refactor executable path resolution in release workflow for improved readability
1 parent fff05b1 commit 2eea58e

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -79,12 +79,7 @@ jobs:
7979
if command -v readlink >/dev/null 2>&1; then
8080
EXE_ABS=$(readlink -f "$EXE_PATH")
8181
else
82-
EXE_ABS=$(python3 - << 'PY'
83-
import os,sys
84-
p=sys.argv[1]
85-
print(os.path.abspath(p))
86-
PY
87-
"$EXE_PATH")
82+
EXE_ABS=$(python3 -c 'import os,sys; print(os.path.abspath(sys.argv[1]))' "$EXE_PATH")
8883
fi
8984
9085
echo "exe=$EXE_ABS" >> "$GITHUB_OUTPUT"

0 commit comments

Comments
 (0)