-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix version and build parameters when building taq using Homebrew
- Loading branch information
1 parent
6d14053
commit 3b1e7f1
Showing
31 changed files
with
118 additions
and
111 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
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
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 |
---|---|---|
@@ -1,11 +1,16 @@ | ||
#!/usr/bin/env bash | ||
BRANCH=`git branch --show-current` | ||
COMMIT=`git rev-parse --short HEAD` | ||
if [ -z "$GITHUB_REF_NAME" ]; then | ||
TAQ_VERSION="dev-${BRANCH//\//-}" | ||
else | ||
if [ -z "$TAQ_VERSION" ]; then | ||
if [ -z "$GITHUB_REF_NAME" ]; then | ||
BRANCH=`git branch --show-current` | ||
TAQ_VERSION="dev-${BRANCH//\//-}" | ||
else | ||
|
||
TAQ_VERSION=$(cat package.json | jq -r '.["version"]') | ||
TAQ_VERSION=$(cat package.json | jq -r '.["version"]') | ||
fi | ||
fi | ||
TIMESTAMP=`date +%s` | ||
BUILD="$COMMIT" | ||
|
||
if [ -z "$TAQ_BUILD" ]; then | ||
COMMIT=`git rev-parse --short HEAD` | ||
TAQ_BUILD="$COMMIT" | ||
fi |
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
Oops, something went wrong.