From 4fdc5fd9a581f9fbcac811b9f2997a91a4847f5c Mon Sep 17 00:00:00 2001 From: Eric Scouten Date: Sat, 28 Sep 2024 20:45:54 -0700 Subject: [PATCH] chore: Start selecting base branch for nightly --- .github/workflows/nightly.yml | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml index 60a618c..45cda08 100644 --- a/.github/workflows/nightly.yml +++ b/.github/workflows/nightly.yml @@ -35,8 +35,17 @@ jobs: grep -E '^release-plz-20' |\ sort -r |\ head -n 1) - echo Found RP branch $LATEST_RELEASE_PLZ - + + if [ -z "$LATEST_RELEASE_PLZ" ]; then \ + BASE_BRANCH=main \ + echo "No release-plz branch; using main"; \ + else \ + echo Found RP branch $LATEST_RELEASE_PLZ; \ + BASE_BRANCH=$LATEST_RELEASE_PLZ \ + fi + + echo Found base branch $BASE_BRANCH + # - name: Set new proposed version # uses: paulhatch/semantic-version@v5.4.0 # id: set-version