Skip to content

Commit

Permalink
update action
Browse files Browse the repository at this point in the history
  • Loading branch information
aiqinxuancai committed Mar 6, 2024
1 parent 42a1fa4 commit 2b5b7f6
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/dotnet-desktop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,11 +64,10 @@ jobs:
- name: Process tag and rename file
id: process_tag
run: |
$tagStr = "$(echo "${{ github.ref }}" | cut -d / -f 3)"
if ($tagStr.StartsWith('v')) {
$tagStr = $tagStr.SubString(1)
}
Rename-Item -Path .\Aria2Fast.zip -NewName "Aria2Fast-$tagStr.zip"
$tagStr="$(echo "${{ github.ref }}" | cut -d / -f 3)"
$newName="Aria2Fast-$tagStr.zip"
echo "$newName"
Rename-Item -Path .\Aria2Fast.zip -NewName $newName
echo "tag=$tagStr" >> $GITHUB_OUTPUT
shell: powershell

Expand Down

0 comments on commit 2b5b7f6

Please sign in to comment.