This repository has been archived by the owner on Nov 15, 2023. It is now read-only.
forked from snowplow/snowplow-javascript-tracker
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ensure that the intended version is deployed (close snowplow#739)
- Loading branch information
1 parent
0c64a30
commit a2ac6c6
Showing
3 changed files
with
38 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#!/bin/bash | ||
|
||
tag=$1 | ||
cicd=${tag:0:4} | ||
release=${tag:5} | ||
coreVersion=$(node -e 'const {version} = require("./core/package.json"); console.log(`${version}`);') | ||
|
||
if [ "${cicd}" == "core" ]; then | ||
if [ "${release}" == "" ]; then | ||
echo "Warning! No release specified! Ignoring." | ||
exit 2 | ||
elif [ "${release}" != "${coreVersion}" ]; then | ||
echo "Tagged version ${release} does not equal core package version ${coreVersion}" | ||
exit 1 | ||
fi | ||
exit 0 | ||
else | ||
exit 1 | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#!/bin/bash | ||
|
||
tag=$1 | ||
release=$tag | ||
trackerVersion=$(node -e 'const {version} = require("./package.json"); console.log(`${version}`);') | ||
|
||
if [ "${release}" == "" ]; then | ||
echo "Warning! No release specified! Ignoring." | ||
exit 2 | ||
else | ||
if [ "${release:0:4}" == "core" ]; then | ||
echo "Core relase, not tracker" | ||
elif [ "${release}" != "${trackerVersion}" ]; then | ||
echo "Tagged version ${release} does not equal tracker package version ${trackerVersion}" | ||
fi | ||
fi | ||
exit 0 |