From 31a0966096363759778c3663dbddf3b9cdb51432 Mon Sep 17 00:00:00 2001 From: Phil Tyler Date: Sat, 8 Apr 2023 19:08:11 -0700 Subject: [PATCH] update build-tag to use an alternate source for version number (#336) --- .github/workflows/build-tag.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build-tag.yml b/.github/workflows/build-tag.yml index 59223b2..0af7028 100644 --- a/.github/workflows/build-tag.yml +++ b/.github/workflows/build-tag.yml @@ -16,11 +16,15 @@ jobs: run: | composer install --no-dev -o - name: Setup - run: 'echo "VERSION=$(jq -r .version ./package.json)" >> $GITHUB_ENV' + run: | + VERSION=$(cat readme.txt| grep 'Stable tag:' | awk '{print $3}') + [[ "$VERSION" != "" ]] || exit 1 + echo "VERSION=$VERSION" >> $GITHUB_ENV - name: Tag run: | echo "Releasing version $VERSION ..." + [[ "$VERSION" != "" ]] || exit 1 git config user.name Pantheon Automation git config user.email bot@getpantheon.com git checkout -b "release-$VERSION"