Skip to content

Commit cb0a9ee

Browse files
authored
disable DRY_RUN on releasable branches (#589)
1 parent 8bc4fb6 commit cb0a9ee

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.buildkite/sign_and_publish.yml.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
import argparse
77
import json
88
import os
9+
import re
910

1011
def parse_args() -> argparse.Namespace:
1112
parser = argparse.ArgumentParser()
@@ -19,7 +20,7 @@ def main():
1920
# This only gets triggered when the branch is either main or 7.\d or 8.\d
2021
# So, dry_run is true for non main branch
2122
branch = os.getenv("BUILDKITE_BRANCH")
22-
dry_run = branch != "main"
23+
dry_run = not (branch == "main" or branch == "8.x" or re.match(r"^[78]\.\d+$", branch))
2324
pipeline = {}
2425
steps = [
2526
{

0 commit comments

Comments
 (0)