Skip to content

Commit

Permalink
update build-tag to use an alternate source for version number (#336)
Browse files Browse the repository at this point in the history
  • Loading branch information
pwtyler committed Apr 9, 2023
1 parent 5bf15ed commit 31a0966
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/build-tag.yml
Expand Up @@ -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"
Expand Down

0 comments on commit 31a0966

Please sign in to comment.