From f043b5f9853a4a239fcef97591557abdb74d1c59 Mon Sep 17 00:00:00 2001 From: Eric Amodio Date: Mon, 17 Oct 2022 11:31:21 -0400 Subject: [PATCH] Uses `pre` branch for pre-release change detection --- .github/workflows/cd-pre.yml | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/.github/workflows/cd-pre.yml b/.github/workflows/cd-pre.yml index 9bf5b16..2645555 100644 --- a/.github/workflows/cd-pre.yml +++ b/.github/workflows/cd-pre.yml @@ -22,27 +22,27 @@ jobs: run: | git config user.name github-actions git config user.email github-actions@github.com - if git rev-parse origin/insiders >/dev/null 2>&1; then - insidersRef=$(git show-ref -s origin/insiders) + if git rev-parse origin/pre >/dev/null 2>&1; then + preRef=$(git show-ref -s origin/pre) headRef=$(git show-ref --head -s head) - echo "origin/insiders" - echo $insidersRef + echo "origin/pre" + echo $preRef echo "HEAD" echo $headRef - if [ "$insidersRef" = "$headRef" ]; then - echo "No changes since last insiders build. Exiting." + if [ "$preRef" = "$headRef" ]; then + echo "No changes since last pre-release build. Exiting." echo "::set-output name=status::unchanged" exit 0 else - echo "Updating insiders" - git push origin --delete insiders - git checkout -b insiders - git push origin insiders + echo "Updating pre" + git push origin --delete pre + git checkout -b pre + git push origin pre fi else - echo "No insiders branch. Creating." - git checkout -b insiders - git push origin insiders + echo "No pre branch. Creating." + git checkout -b pre + git push origin pre fi echo "::set-output name=status::changed"