Skip to content

Commit

Permalink
Update msbuild.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
illusion0001 authored Jan 24, 2025
1 parent d946021 commit 18a17f4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/msbuild.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ jobs:
BUILD_PRESET: vs2022
CONFIGURATION: RelWithDebInfo
INSTALL_CONFIGURATION: ${{ github.workspace }}/out/install
BRANCH: ${{ github.ref_name }}
DLL_OUT: x64_lib
WANT_RELEASE: true
permissions:
Expand All @@ -34,8 +33,9 @@ jobs:
- name: Setup environment variables
run: |
$cmdOutput = Split-Path -Path $pwd -Leaf
$_ver = "1.0.$(git rev-list HEAD --count)-$(git rev-parse --short=8 HEAD)+${{ github.run_number }}-branch-${{ env.BRANCH }}"
$_ver = $_ver.replace('/','|')
$branch = ${{ github.ref_name }}
$branch = $branch.replace('/','|')
$_ver = "1.0.$(git rev-list HEAD --count)-$(git rev-parse --short=8 HEAD)+${{ github.run_number }}-branch-$branch"
echo "commit_ver=$_ver" >> "$Env:GITHUB_ENV"
echo "zip_name=$cmdOutput-$_ver" >> "$Env:GITHUB_ENV"
echo "folder=$cmdOutput" >> "$Env:GITHUB_ENV"
Expand Down

0 comments on commit 18a17f4

Please sign in to comment.