From ee04f6dbb8b12b382f977ad1e26cedfadc1ed3cf Mon Sep 17 00:00:00 2001 From: Vincent Demeester Date: Thu, 19 Sep 2024 09:28:33 +0200 Subject: [PATCH] cmd/konflux: do not fail if there is nothing to commit Signed-off-by: Vincent Demeester --- cmd/konflux/templates/github/workflows/update-sources.yaml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/cmd/konflux/templates/github/workflows/update-sources.yaml b/cmd/konflux/templates/github/workflows/update-sources.yaml index 1e0da03..5622f76 100644 --- a/cmd/konflux/templates/github/workflows/update-sources.yaml +++ b/cmd/konflux/templates/github/workflows/update-sources.yaml @@ -43,6 +43,11 @@ jobs: rm -rf upstream/.git git add upstream head + if [[ -z $(git status --porcelain --untracked-files=no) ]]; then + echo "No change, exiting" + exit 0 + fi + git commit -F- <