Skip to content

Commit

Permalink
check if chart version file changed
Browse files Browse the repository at this point in the history
Signed-off-by: zhujian <[email protected]>
  • Loading branch information
zhujian7 committed Mar 6, 2024
1 parent b6bf8e7 commit 4caeec0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/go-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 4caeec0

Please sign in to comment.