Skip to content

Commit

Permalink
Account for when before_script and after_script are empty
Browse files Browse the repository at this point in the history
  • Loading branch information
costrouc committed Mar 3, 2023
1 parent 28078ad commit 252c4e1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nebari/provider/cicd/github.py
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ def gen_nebari_ops(config):
step3 = install_nebari_step(nebari_version)
gha_steps = [step1, step2, step3]

for step in config['ci_cd'].get('before_script'):
for step in config['ci_cd'].get('before_script', []):
gha_steps.append(GHA_job_step(**step))

step4 = GHA_job_step(
Expand All @@ -270,7 +270,7 @@ def gen_nebari_ops(config):
if commit_render:
gha_steps.append(step5)

for step in config['ci_cd'].get('after_script'):
for step in config['ci_cd'].get('after_script', []):
gha_steps.append(GHA_job_step(**step))

job1 = GHA_job_id(name="nebari", runs_on_="ubuntu-latest", steps=gha_steps)
Expand Down

0 comments on commit 252c4e1

Please sign in to comment.