Skip to content

Commit 3170da1

Browse files
authored
Update deprecated "set-env" command in build workflow
1 parent 181f5f4 commit 3170da1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/main.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,10 @@ jobs:
4141
$file = ".\src\MQTTLib\bin\${env:Configuration}\${env:Bin}"
4242
$env:WINS_VERSION = $(Get-Item $file).VersionInfo.ProductVersion
4343
Write-Host WINS_VERSION $env:WINS_VERSION
44-
echo "::set-env name=WINS_VERSION::$env:WINS_VERSION"
44+
echo "WINS_VERSION=$WINS_VERSION" >> $env:GITHUB_ENV
4545
$env:TIMESTAMP = Get-Date -Format "yyyyMMddHHmmss"
4646
Write-Host TIMESTAMP $env:TIMESTAMP
47-
echo "::set-env name=TIMESTAMP::$env:TIMESTAMP"
47+
echo "TIMESTAMP=$TIMESTAMP" >> $env:GITHUB_ENV
4848
- name: Deploy & zip
4949
run: |
5050
New-Item bin -ItemType Directory

0 commit comments

Comments
 (0)