Skip to content

Commit

Permalink
Add conditional check for release tag in Buildkite pipeline (#4335)
Browse files Browse the repository at this point in the history
* ci(buildkite): add conditional check for release tag in pipeline.yml
  • Loading branch information
mcwinter07 authored Nov 22, 2023
1 parent a374c07 commit b0393e7
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .buildkite/pipeline.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,17 @@ x-defaults: &defaults
run: build

steps:
- name: ":sleuth_or_spy: Checking for release tag"
key: "is_released"
branches: "main"
# we assume that all releases with have a tag and that tag with have a @ version format
if: build.tag =~ /@(\d+\.\d+\.\d+)/ && build.tag =~ /^(?:(?!canary).)*$/

- wait

- name: ":package: Build (storybook)"
branches: "main"
depends_on: "is_released"
command: ".buildkite/scripts/build-storybook.sh"
timeout_in_minutes: 15
artifact_paths: "./storybook.tar.gz"
Expand Down

0 comments on commit b0393e7

Please sign in to comment.