Skip to content

Commit 86a5126

Browse files
committed
chore: Update App Info retrieval in Windows workflow
1 parent f6e80ea commit 86a5126

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/windows.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,13 @@ jobs:
2929
cd src && python build.py bdist_msi
3030
shell: pwsh
3131

32-
- name: Create App Version
32+
- name: Get App Info
3333
id: get_version
3434
run: |
3535
$version = (Get-Content src/build.py | Select-String -Pattern 'version\s*=\s*"([^"]+)"').Matches.Groups[1].Value
3636
echo "VERSION=$version" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
37+
$filename = (Get-ChildItem -Path src/dist/out/*.msi).Name
38+
echo "FILENAME=$filename" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
3739
shell: pwsh
3840

3941
- name: Create Tag
@@ -88,7 +90,7 @@ jobs:
8890
tag_name: ${{ env.VERSION }}
8991
name: Release ${{ env.VERSION }}
9092
body: |
91-
![GitHub Downloads (specific asset, specific tag)](https://img.shields.io/github/downloads/amnweb/yasb/v${{ env.VERSION }}/*.msi)
93+
![GitHub Downloads (specific asset, specific tag)](https://img.shields.io/github/downloads/amnweb/yasb/v${{ env.VERSION }}/${{ env.FILENAME }})
9294
${{ steps.changelog.outputs.changes }}
9395
append_body: true
9496
files: |

0 commit comments

Comments
 (0)