-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add known branch exceptions to version matching
Maybe doing it this way is better, since we don't "break" existing consumption elements Forcing `version-type: strict`, while explicit, would probably force some installations to use a too-specific Elixir version
- Loading branch information
1 parent
980f47e
commit 70cd6c0
Showing
4 changed files
with
26 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,16 +19,11 @@ jobs: | |
SHA=$(git rev-parse --short HEAD) | ||
sed -i'.bak' \ | ||
-e "s/const setupBeamVersion = '.*'/const setupBeamVersion = '${SHA}'/g" \ | ||
dist/index.js | ||
# it always starts by being 'undefined' | ||
NEWVER=$(grep -oE "const setupBeamVersion = '.*'" dist/index.js | cut -d\' -f2) | ||
if [ "$NEWVER" == "undefined" ]; then | ||
exit 1 | ||
else | ||
echo "Continuing... new version is ${NEWVER}" | ||
fi | ||
src/setup-beam.js | ||
npm run build-dist | ||
git config user.name "GitHub Actions" | ||
git config user.email "[email protected]" | ||
git add src/setup-beam.js | ||
git add dist/index.js | ||
git commit -m "Update setup-beam version output to ${SHA}" | ||
git push origin main | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters