From 7c4b2698d61742f02606204221aa95031d1761b3 Mon Sep 17 00:00:00 2001 From: Sun Serega Date: Mon, 23 Oct 2023 17:28:58 +0300 Subject: [PATCH] Ignore 'LastPack.log' when checking changes --- .github/workflows/on commit.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/on commit.yaml b/.github/workflows/on commit.yaml index 9aac1293..02e78b07 100644 --- a/.github/workflows/on commit.yaml +++ b/.github/workflows/on commit.yaml @@ -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)" @@ -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)"