Skip to content

Handle git release tag properly#3288

Merged
chriseth merged 2 commits intoargotorg:developfrom
kayuri:SOL3277--Properly-handle-release-tag
Dec 6, 2017
Merged

Handle git release tag properly#3288
chriseth merged 2 commits intoargotorg:developfrom
kayuri:SOL3277--Properly-handle-release-tag

Conversation

@kayuri
Copy link
Contributor

@kayuri kayuri commented Dec 6, 2017

Build process will check current commit and if it is tagged
starting with a v then it will create prerelease.txt file in
the top directory.

Build process will check current commit and if it is tagged
starting with a `v` then it will create `prerelease.txt` file in
the top directory.
scripts/build.sh Outdated
@@ -1,5 +1,9 @@
#!/usr/bin/env bash

if [[ "$(git tag --points-at HEAD 2>/dev/null)"=="v*" ]]; then
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you have to add spaces around == to make this work.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep, you are right. And also it should v* instead of "v*", sorry about that too. Fixed now.

scripts/build.sh Outdated
#!/usr/bin/env bash

if [[ "$(git tag --points-at HEAD 2>/dev/null)"=="v*" ]]; then
touch prerelease.txt
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please make this work even if the script is run from the wrong directory. You ran for example just move the line containing cd $(dirname "$0")/.. upwards.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed.

@kayuri
Copy link
Contributor Author

kayuri commented Dec 6, 2017

@chriseth thanks for reviewing, I've pushed review fixes

@chriseth chriseth merged commit 1343770 into argotorg:develop Dec 6, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants