Skip to content

Commit

Permalink
Ignore 'LastPack.log' when checking changes
Browse files Browse the repository at this point in the history
  • Loading branch information
SunSerega committed Oct 23, 2023
1 parent 384c663 commit 7c4b269
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/on commit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ jobs:
Write-Host "Old changes branch not found"
}
if ((git diff --name-only) -or (git ls-files --others --exclude-standard)) {
if ((git diff --name-only | Where-Object { $_ -ne 'LastPack.log' }) -or (git ls-files --others --exclude-standard)) {
Write-Host "Changes detected"
git checkout -B "win-pack-changes/$(git rev-parse --abbrev-ref HEAD)"
Expand Down Expand Up @@ -150,7 +150,7 @@ jobs:
echo "Old changes branch not found"
fi
if [[ $(git diff --name-only) || $(git ls-files --others --exclude-standard) ]]; then
if [[ $(git diff --name-only | grep -v 'LastPack.log') || $(git ls-files --others --exclude-standard) ]]; then
echo "Changes detected"
git checkout -B "ubuntu-pack-changes/$(git rev-parse --abbrev-ref HEAD)"
Expand Down

0 comments on commit 7c4b269

Please sign in to comment.