From 4caeec03ff226e6feed7d0cd80378872d612e921 Mon Sep 17 00:00:00 2001 From: zhujian Date: Wed, 6 Mar 2024 08:27:02 +0000 Subject: [PATCH] check if chart version file changed Signed-off-by: zhujian --- .github/workflows/go-release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/go-release.yml b/.github/workflows/go-release.yml index d781b25..3c840a7 100644 --- a/.github/workflows/go-release.yml +++ b/.github/workflows/go-release.yml @@ -70,7 +70,7 @@ jobs: echo "Updating chart version file from $CURRENT_VERSION to $NEXT_VERSION" sed -i "s/version: $CURRENT_VERSION/version: $NEXT_VERSION/" ${{ env.CHART_VERSION_FILE_PATH }} git diff - FILE_CHANGED=$(git diff --exit-code && echo false || echo true) + FILE_CHANGED=$(git diff --exit-code --quiet && echo false || echo true) echo "file_changed=$FILE_CHANGED" >> $GITHUB_OUTPUT echo "Chart version file changed: $FILE_CHANGED" env: