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:
Andy McCrae 2019-05-04 17:36:48 +01:00
parent e2e3e1ea2e
commit 8e021580ad
1 changed files with 4 additions and 0 deletions

View File

@ -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