Skip to content

Commit

Permalink
use date range for copyright notice in assemblies
Browse files Browse the repository at this point in the history
  • Loading branch information
radj307 committed Nov 8, 2023
1 parent 1f5c404 commit 590f014
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/UpdateVersion.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
$tag = $(git describe --tags --abbrev=0)
$tag -cmatch '(?<MAJOR>\d+?)\.(?<MINOR>\d+?)\.(?<PATCH>\d+?)(?<EXTRA>.*)' > $null
$tag_3_part = $Matches.MAJOR + '.' + $Matches.MINOR + '.' + $Matches.PATCH
$copyright = "Copyright © $((Get-Date).Year) by `$`(Authors`)"
$copyright = "Copyright © 2022-$((Get-Date).Year) by `$`(Authors`)"
.\SetVersion.ps1 -Path VolumeControl.Log/VolumeControl.Log.csproj Version=$tag FileVersion=$tag_3_part Copyright=$copyright
.\SetVersion.ps1 -Path VolumeControl.TypeExtensions/VolumeControl.TypeExtensions.csproj Version=$tag FileVersion=$tag_3_part Copyright=$copyright
Expand Down

0 comments on commit 590f014

Please sign in to comment.