Skip to content

Commit d2a3315

Browse files
committed
simplify diff detection
1 parent 773bd8f commit d2a3315

1 file changed

Lines changed: 3 additions & 6 deletions

File tree

.github/workflows/operator-release-make-bundle.yaml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -47,17 +47,14 @@ jobs:
4747
- name: Check for changes
4848
id: changes
4949
run: |
50-
if [ -z "$(git status --porcelain)" ]; then
51-
echo "No bundle changes to commit"
50+
git add -A
51+
if git diff --cached --quiet; then
5252
echo "has_changes=false" >> "$GITHUB_OUTPUT"
53+
echo "No chart changes to commit"
5354
else
5455
echo "has_changes=true" >> "$GITHUB_OUTPUT"
5556
fi
5657
57-
- name: Stage all bundle changes
58-
if: steps.changes.outputs.has_changes == 'true'
59-
run: git add -A
60-
6158
# Commits made via the GitHub API are automatically signed by GitHub
6259
- name: Commit bundle (signed via GitHub API)
6360
if: steps.changes.outputs.has_changes == 'true'

0 commit comments

Comments
 (0)