Skip to content

Commit

Permalink
Set AssemblyTitle
Browse files Browse the repository at this point in the history
  • Loading branch information
Arthurvdv committed May 6, 2024
1 parent c2a7100 commit de9fe12
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -166,13 +166,15 @@ jobs:
- name: Unzip vsix
run: 7z x ALLanguage.vsix "-oms-dynamics-smb.al-latest" extension/bin/Analyzers -r

- name: Set current version
- name: Set AssemblyInfo
shell: pwsh
if: ${{ matrix.GH_eventName != 'pull_request' }}
run: (Get-Content AssemblyInfo.cs) -replace 'Version\("([\d\.]+)"\)]',
("Version(""" + ('${{ needs.setup-matrix.outputs.release-tag-name }}'
-replace "v","") + """)]") | Out-File AssemblyInfo.cs

(Get-Content AssemblyInfo.cs) -replace 'AssemblyTitle\("([^"]*)"\)', "AssemblyTitle(`"AL-${{ needs.setup-matrix.outputs.version }}`")" | Out-File AssemblyInfo.cs

- name: Build
run: dotnet build /p:FeatureFlags=${{ matrix.featureflags }} --no-restore --configuration Release

Expand Down
Binary file modified AssemblyInfo.cs
Binary file not shown.

0 comments on commit de9fe12

Please sign in to comment.