Skip to content

Commit

Permalink
fix ubuntu changes detection
Browse files Browse the repository at this point in the history
  • Loading branch information
SunSerega committed Apr 22, 2024
1 parent dcba530 commit 2e49269
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 @@ -157,9 +157,9 @@ jobs:
echo "Old changes branch not found"
fi
if git diff --name-only ":!LastPack.log" || git ls-files --others --exclude-standard; then
if [[ $(git diff --name-only ":!LastPack.log") || $(git ls-files --others --exclude-standard) ]]; then
echo "Changes detected"
workflow_fail=$(git diff --name-only ":!LastPack.log" ":!Log/PullUpstream.log" ":!DataScraping/Reps" || git ls-files --others --exclude-standard)
workflow_fail=$(git diff --name-only ":!LastPack.log" ":!Log/PullUpstream.log" ":!DataScraping/Reps") || $(git ls-files --others --exclude-standard)
git checkout -B "ubuntu-pack-changes/$(git rev-parse --abbrev-ref HEAD)"
Expand Down

0 comments on commit 2e49269

Please sign in to comment.