Skip to content

Commit a2ea59c

Browse files
Use new syntax to set environment variable
Use new syntax to set environment variable value. See https://docs.github.com/en/free-pro-team@latest/actions/reference/workflow-commands-for-github-actions#setting-an-environment-variable.
1 parent 0bdaf14 commit a2ea59c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ jobs:
4848
$QuarterHours = [Math]::Floor($Now.Minute / 15.0)
4949
$Revision = $Hours + $QuarterHours + 1
5050
$BuildId = $Now.ToString("yyyyMMdd") + "." + $Revision
51-
Write-Host "::set-env name=_AspNetContribBuildNumber::${BuildId}"
51+
Write-Host "_AspNetContribBuildNumber=${BuildId}" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
5252
5353
- name: Build, Test and Package
5454
if: ${{ runner.os == 'Windows' }}

0 commit comments

Comments
 (0)