Skip to content

Commit c98fbc1

Browse files
authored
maint: move bootstrap version reference to resources/.bootstrap-required-version (#99)
Relates-to: keymanapp/keyman.com#794 Test-bot: skip
1 parent 1998f79 commit c98fbc1

1 file changed

Lines changed: 8 additions & 9 deletions

File tree

.github/workflows/deploy-release.yml

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -43,15 +43,14 @@ jobs:
4343
cd keymanapp
4444
for repo in *; do
4545
cd "$repo"
46-
if [ -f build.sh ]; then
47-
sed -i "s/^readonly BOOTSTRAP_VERSION=.*/readonly BOOTSTRAP_VERSION=${BOOTSTRAP_VERSION}/" build.sh
48-
git checkout -b auto/update-bootstrap-version-${BOOTSTRAP_VERSION}
49-
git add build.sh
50-
git commit -m "chore: update BOOTSTRAP_VERSION to ${BOOTSTRAP_VERSION}"
51-
git remote set-url --push origin "https://keyman-server:${GITHUB_TOKEN}@github.com/keymanapp/$repo.git"
52-
git push -u origin auto/update-bootstrap-version-${BOOTSTRAP_VERSION}
53-
gh pr create --title "auto: update shared-sites version to ${BOOTSTRAP_VERSION}" --label auto --reviewer darcywong00,mcdurdin,ermshiperete --body "Update BOOTSTRAP_VERSION to [${BOOTSTRAP_VERSION}](https://github.com/keymanapp/shared-sites/releases/tag/${BOOTSTRAP_VERSION})." --repo "keymanapp/${PWD##*/}"
54-
fi
46+
mkdir -p resources
47+
echo "${BOOTSTRAP_VERSION}" > resources/.bootstrap-required-version
48+
git checkout -b auto/update-bootstrap-version-${BOOTSTRAP_VERSION}
49+
git add resources/.bootstrap-required-version
50+
git commit -m "chore: update BOOTSTRAP_VERSION to ${BOOTSTRAP_VERSION}"
51+
git remote set-url --push origin "https://keyman-server:${GITHUB_TOKEN}@github.com/keymanapp/$repo.git"
52+
git push -u origin auto/update-bootstrap-version-${BOOTSTRAP_VERSION}
53+
gh pr create --title "auto: update shared-sites version to ${BOOTSTRAP_VERSION}" --label auto --body "Update BOOTSTRAP_VERSION to [${BOOTSTRAP_VERSION}](https://github.com/keymanapp/shared-sites/releases/tag/${BOOTSTRAP_VERSION})." --repo "keymanapp/${PWD##*/}"
5554
cd ..
5655
done
5756
env:

0 commit comments

Comments
 (0)