diff --git a/.github/workflows/bump-k8s.yml b/.github/workflows/bump-k8s.yml index 741da00cf..322c5a790 100644 --- a/.github/workflows/bump-k8s.yml +++ b/.github/workflows/bump-k8s.yml @@ -30,7 +30,10 @@ jobs: - name: Check for changes and update version id: changes run: | - echo "changes=$(git diff)" >> $GITHUB_OUTPUT + git_diff_output=$(git diff) + if [ -n "$git_diff_output" ]; then + echo "changes=true" >> $GITHUB_OUTPUT + fi - name: Create PR if: steps.changes.outputs.changes