raise an error if the file does not exist when uploading an artifact

This commit is contained in:
MaysWind
2025-09-27 17:20:45 +08:00
parent 5dc4ad60ba
commit 4d9643dcb2
2 changed files with 6 additions and 4 deletions
+3 -2
View File
@@ -121,7 +121,7 @@ jobs:
- name: Extract frontend files from linux-amd64 package
run: |
New-Item -ItemType Directory -Path package
tar -xzf (Get-ChildItem artifacts\ezbookkeeping-dev-*-linux-amd64.tar.gz) -C package
tar -xzf (Get-ChildItem artifacts\ezbookkeeping-dev-${{ github.run_id }}-linux-amd64.tar.gz) -C package
- name: Set up Go
uses: actions/setup-go@v6
@@ -174,4 +174,5 @@ jobs:
uses: actions/upload-artifact@v4
with:
name: ezbookkeeping-dev-${{ github.run_id }}-windows-x64
path: ezbookkeeping-dev-*-windows-x64.zip
path: ezbookkeeping-dev-${{ github.run_id }}-windows-x64.zip
if-no-files-found: error