Skip to content

Commit

Permalink
p
Browse files Browse the repository at this point in the history
Signed-off-by: kevin <[email protected]>
  • Loading branch information
khluu committed Sep 23, 2024
1 parent 5a086b9 commit 3c45849
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions scripts/pipeline_generator/step.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,20 @@

from .utils import AgentQueue

BUILD_STEP_KEY = "build"

class BuildkiteBlockStep(BaseModel):
"""This class represents a block step in Buildkite format."""
block: str
depends_on: Optional[str] = "build"
depends_on: Optional[str] = BUILD_STEP_KEY
key: str


def get_step_key(step_label: str) -> str:
step_label = step_label.replace(", ", ",")
step_key = ""
skip_chars = "()%"
skip_chars = "()% "
for char in step_label.lower():
if char in ", ":
if char in ", " and step_key[-1] != "-":
step_key += "-"
elif char not in skip_chars:
step_key += char
Expand Down

0 comments on commit 3c45849

Please sign in to comment.