Only check Candidates during Active election
The CI jobs will fail outside of election time due to name mismatches, but we don't need to run an election candidate CI job when there is no active election. Change-Id: I5b8d37d1c66fd96564741aa0aa69cc840ad39950
This commit is contained in:
parent
e2e3e1ea2e
commit
8e021580ad
|
@ -117,6 +117,10 @@ def main():
|
|||
args = parser.parse_args()
|
||||
errors = False
|
||||
|
||||
if not utils.election_is_running():
|
||||
print('no current active election')
|
||||
return 0
|
||||
|
||||
if not validate_release(args.release):
|
||||
return 1
|
||||
|
||||
|
|
Loading…
Reference in New Issue