Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
VeryEarly committed May 29, 2024
1 parent c2174cf commit d37638e
Showing 1 changed file with 20 additions and 20 deletions.
40 changes: 20 additions & 20 deletions .github/workflows/sync-generation-temp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,23 +33,23 @@ jobs:
$repoRoot = '${{ github.workspace }}'
git cherry-pick $commitId --strategy-option theirs
git reset HEAD~1
<#
calculate changed modules
#>
$modulePaths = @()
git status --short | Where-Object { $_ -match ".*src.*" } | ForEach-Object { $modulePaths += $_.substring($_.IndexOf("src"), $_.IndexOf(".Autorest")+6) }
if (0 -eq $modulePaths.Count) {
return
}
$modulePaths | Select-Object -Unique
foreach ($modulePath in $modulePaths) {
$modulePath = Join-Path $repoRoot $modulePath
Set-Location $modulePath
autorest --max-memory-size=8192
./build-module.ps1
}
Set-Location $repoRoot
git add src
git commit -m "cherry-pick $commitId from generation"
git push origin future
# git reset HEAD~1
# <#
# calculate changed modules
# #>
# $modulePaths = @()
# git status --short | Where-Object { $_ -match ".*src.*" } | ForEach-Object { $modulePaths += $_.substring($_.IndexOf("src"), $_.IndexOf(".Autorest")+6) }
# if (0 -eq $modulePaths.Count) {
# return
# }
# $modulePaths | Select-Object -Unique
# foreach ($modulePath in $modulePaths) {
# $modulePath = Join-Path $repoRoot $modulePath
# Set-Location $modulePath
# autorest --max-memory-size=8192
# ./build-module.ps1
# }
# Set-Location $repoRoot
# git add src
# git commit -m "cherry-pick $commitId from generation"
# git push origin future

0 comments on commit d37638e

Please sign in to comment.