diff --git a/.github/workflows/sync-generation-temp.yml b/.github/workflows/sync-generation-temp.yml index e88ccb819007..dd118a539986 100644 --- a/.github/workflows/sync-generation-temp.yml +++ b/.github/workflows/sync-generation-temp.yml @@ -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