Skip to content

Commit 6f10aa0

Browse files
committed
fix: 打包流程修改
1 parent 3c23802 commit 6f10aa0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/release.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@ jobs:
2525
$previous_sha256 = "${{ github.event.before }}"
2626
if ($previous_sha256 -and $previous_sha256 -ne "0000000000000000000000000000000000000000") {
2727
$previous_content = git show $previous_sha256:src/python/rag.py 2>$null
28-
if ($? -and $previous_content) {
28+
$LASTEXITCODE = 0 # Reset exit code to avoid propagating git show failure
29+
if ($previous_content) {
2930
echo $previous_content | Out-File temp_rag.py -Encoding utf8
3031
if (Test-Path temp_rag.py) {
3132
$previous_hash = (Get-FileHash -Path temp_rag.py -Algorithm SHA256).Hash

0 commit comments

Comments
 (0)