Skip to content

Commit

Permalink
Merge pull request #15737 from MinaProtocol/dkijania/always_fetch_tag…
Browse files Browse the repository at this point in the history
…_dev

[Port][Dev] Always fetch tags before running git describe in CI
  • Loading branch information
dkijania authored Jun 11, 2024
2 parents 8aadb75 + 8cb0e60 commit d136b2e
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 17,649 deletions.
1 change: 1 addition & 0 deletions buildkite/scripts/export-git-env-vars.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ echo "Exporting Variables: "
export MINA_REPO="https://github.com/MinaProtocol/mina.git"

function find_most_recent_numeric_tag() {
git fetch --tags
TAG=$(git describe --always --abbrev=0 $1 | sed 's!/!-!g; s!_!-!g; s!#!-!g')
if [[ $TAG != [0-9]* ]]; then
TAG=$(find_most_recent_numeric_tag $TAG~)
Expand Down
Loading

0 comments on commit d136b2e

Please sign in to comment.