Skip to content

Commit 1831a06

Browse files
authored
Merge pull request #13902 from SORMAS-Foundation/task-update_github_java_ci
Updated java ci to avoid unnecessary commits for swagger files
2 parents cf519b6 + c8b1f59 commit 1831a06

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.github/workflows/ci.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,5 +116,9 @@ jobs:
116116
cp /tmp/openapi/swagger.* sormas-rest/
117117
118118
git add sormas-rest/swagger.*
119-
git commit -m "[GitHub Actions] Update openAPI spec files"
120-
git push
119+
if ! git diff --cached --quiet; then
120+
git commit -m "[GitHub Actions] Update openAPI spec files"
121+
git push
122+
else
123+
echo "swagger files are already up to date, nothing to commit"
124+
fi

0 commit comments

Comments
 (0)