diff --git a/.github/workflows/CI_build.yml b/.github/workflows/CI_build.yml index 5a5c238f3219..d4de0d1d2105 100644 --- a/.github/workflows/CI_build.yml +++ b/.github/workflows/CI_build.yml @@ -23,7 +23,7 @@ jobs: $folders_nowork = "\.github/ISSUE_TEMPLATE" $files_nowork = "md|txt|log|ini" $files_needwork = "CMakeLists\.txt" - + $matrix_all = 'matrix={"build_configuration": ["Release", "Debug"], "build_platform": ["x64", "Win32", "ARM64"]}' $matrix_onejob = 'matrix={"build_configuration": ["Debug"], "build_platform": ["Win32"]}' Write-Output $matrix_all >> $env:GITHUB_OUTPUT @@ -38,11 +38,19 @@ jobs: $last_commit = @(Invoke-RestMethod ${{ github.event.pull_request._links.commits.href }})[0] | Select-Object -Last 1 $commit_message = $last_commit.commit.message } - + $commit_message = $isPush ? (git show -s --format=%B) : (git log -1 --no-merges --pretty=%B) + Write-Output '######2' + #Write-Output $commit_message + #Exit 1 + $commit_title = ($commit_message -split "[\r\n]+")[0] $files_modified = @(git diff --name-only HEAD~1) $files_needwork_all = @($files_modified | Where-Object {$_ -notmatch "\.(xml|$files_nowork)$|$folders_nowork|$folders_onejob" -or $_ -match "($files_needwork)$"}) + Write-Output $commit_message + Write-Output $commit_title + Exit 1 + if ($allowMaster -or !$isMaster) { if ($commit_title -match "\[force all\]") { Write-Output "Run standard jobs"