Fail mirror-workspace-git-repos if checkout failed
If the checkout failed the mirror-workspace-git-repos must fail the job. Otherwise this can lead to a broken gate because a different state than the state that should be tested can be tested silently. Change-Id: I98e948776ec4b749bc1475ee3a17e37007591118
This commit is contained in:
parent
71132b658c
commit
3cc366c9c6
@ -38,6 +38,8 @@
|
||||
# Do this as a multi-line shell so that we can do the loop once
|
||||
- name: Update remote repository state correctly
|
||||
shell: |
|
||||
set -eu
|
||||
|
||||
# Reset is needed because we pushed to a non-bare repo
|
||||
git reset --hard
|
||||
# Clean is needed because we pushed to a non-bare repo
|
||||
|
Loading…
Reference in New Issue
Block a user