Skip to content

Commit

Permalink
Update dotnet-desktop.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
MaKrotos authored Oct 8, 2024
1 parent b8c30c7 commit 12a5722
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/dotnet-desktop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -116,9 +116,10 @@ jobs:
- name: Обновить TOKEN_STAT_SLY
run: |
$repoName = "${{ github.repository }}".Split('/')[1]
$content = Get-Content -Path "D:\a\$repoName\$repoName\VK UI3\StaticParams.cs"
$updatedContent = $content -replace 'Environment.GetEnvironmentVariable\("TOKEN_STAT_SLY"\)', $env:TOKEN_STAT_SLY
Set-Content -Path "D:\a\$repoName\$repoName\VK UI3\StaticParams.cs" -Value $updatedContent
$content = Get-Content -Path "D:\a\$repoName\$repoName\VK_UI3\StaticParams.cs"
$updatedContent = $content -replace 'Environment.GetEnvironmentVariable\("TOKEN_STAT_SLY"\)', "`$env:TOKEN_STAT_SLY"
Set-Content -Path "D:\a\$repoName\$repoName\VK_UI3\StaticParams.cs" -Value $updatedContent
# Create the app package by building and packaging the project
Expand Down

0 comments on commit 12a5722

Please sign in to comment.