From 0315e33670a1c4f9f091dd373d582c79fd5fe5c9 Mon Sep 17 00:00:00 2001 From: "christian.schmidt" Date: Wed, 17 Apr 2024 15:24:38 +0200 Subject: [PATCH] Retry change detection --- .github/workflows/main.yaml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index ad842859..dff46a99 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -93,8 +93,9 @@ jobs: id: check-dist-changes run: | before_commit="${{ github.event.before }}" - - if git diff --quiet HEAD "$before_commit" -- ./dist; then + + if git diff --exit-code; then + echo "dist_changed=false" >> "$GITHUB_ENV" echo "No changes detected in the dist directory." else echo "dist_changed=true" >> "$GITHUB_ENV"