Skip to content

Commit 4615841

Browse files
author
Jiri Benc
committed
Revert "Prevent deploy job from failing when there is nothing to commit"
This reverts commit bf12e15. This was part of an attempt to autogenerate RHMAINTAINERS and CODEOWNERS. However, even after several fixups, it still causes pipeline failures. Let's revert all of this and try again later. Signed-off-by: Jiri Benc <jbenc@redhat.com>
1 parent 509722f commit 4615841

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

.gitlab-ci.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,8 +142,7 @@ deploy:
142142
- git config user.name "Gitlab Runner"
143143
- git config user.email ""
144144
- git add info/owners.yaml info/RHMAINTAINERS info/CODEOWNERS
145-
# make it so that job will not fail if there is nothing to commit
146-
- git diff-index --quiet HEAD || git commit -m "[Gitlab CI/CD] Automated rebuild of info/*"
145+
- git commit -m "[Gitlab CI/CD] Automated rebuild of info/*"
147146
- git push https://gitlab-ci-token:$MAKE_MAINT@gitlab.com/redhat/centos-stream/src/kernel/documentation.git '$CI_DEFAULT_BRANCH'
148147

149148
rules:

0 commit comments

Comments
 (0)