Skip to content

Commit

Permalink
fix workflow exit 1 on changes
Browse files Browse the repository at this point in the history
  • Loading branch information
SunSerega committed Apr 22, 2024
1 parent cf0c8d1 commit d163589
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/on commit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,13 @@ jobs:
git commit -m "win changes"
git push -f --set-upstream origin "$(git rev-parse --abbrev-ref HEAD)"
if ((git diff --name-only ":!LastPack.log" ":!Log/PullUpstream.log" ":!DataScraping/Reps/OpenCL-Docs") -or (git ls-files --others --exclude-standard)) {
Write-Host "=== test names:"
foreach ($name in (git diff --name-only ":!LastPack.log" ":!Log/PullUpstream.log" ":!DataScraping/Reps")) {
Write-Host $name
}
Write-Host "=== (done)"
if ((git diff --name-only ":!LastPack.log" ":!Log/PullUpstream.log" ":!DataScraping/Reps") -or (git ls-files --others --exclude-standard)) {
exit 1
}
} else {
Expand Down

0 comments on commit d163589

Please sign in to comment.