Skip to content

Commit 609029e

Browse files
committed
feat: Update License with the current year during transformation
1 parent ff599f9 commit 609029e

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/ScriptModuleRepositoryTemplate/ScriptModuleRepositoryTemplate.psm1

+1
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,7 @@ function SetTemplateTokenValuesInAllRepositoryFiles([string] $repositoryDirector
124124
$contents = $contents -replace '__NewModuleName__', $moduleName
125125
$contents = $contents -replace '__IndividualOrOrganizationName__', $organizationName
126126
$contents = $contents -replace '__NewModuleGuid__', (New-Guid).ToString()
127+
$contents = $contents -replace '__CurrentYear__', (Get-Date).Year
127128
Set-Content -Path $filePath -Value $contents
128129
}
129130
}

src/ScriptModuleRepositoryTemplate/TemplateRepoFiles/License.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2024 __IndividualOrOrganizationName__
3+
Copyright (c) __CurrentYear__ __IndividualOrOrganizationName__
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
66

0 commit comments

Comments
 (0)