diff --git a/.github/workflows/checkVersions.yml b/.github/workflows/checkVersions.yml index 80788e560e8..8e8f674557c 100644 --- a/.github/workflows/checkVersions.yml +++ b/.github/workflows/checkVersions.yml @@ -49,7 +49,10 @@ jobs: - name: Commit version increments, if any run: | set -x - git add '*/META-INF/MANIFEST.MF' '*/feature.xml' '*/pom.xml' + # Only stage files relevant for version increments and don't fail if the kind of file to be staged does not exist at all. + git add '*/META-INF/MANIFEST.MF' || true + git add '*/feature.xml' || true + git add '*/pom.xml' || true if [[ $(git diff --name-only --cached) != '' ]]; then # Relevant files were staged, i.e. some version were changed