Skip to content

Commit

Permalink
fix: buf dependency version take first tag of a commit
Browse files Browse the repository at this point in the history
  • Loading branch information
trietsch committed Oct 31, 2023
1 parent 943fd97 commit 690392f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/publish-release-artifacts.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:
buf_commit_hash=$([[ ${buf_commit_hash_or_empty} = "" ]] && buf beta registry commit list --page-size 1 --reverse --format json buf.build/getstrm/pace:main | jq -r '.results[0].commit' || echo "$buf_commit_hash_or_empty")
buf beta registry tag create "buf.build/getstrm/pace:${buf_commit_hash}" ${{ env.TAG }}
buf_dependency_version=$(buf beta registry commit list --page-size 1 --reverse --format json buf.build/getstrm/pace:main | jq -r '.results[0].tags | map(select(.name=="${{ env.TAG }}")) | .[] | ((.create_time | split(".")[0] | gsub("[^\\d]";"")) + "." + .commit[0:12])')
buf_dependency_version=$(buf beta registry commit list --page-size 1 --reverse --format json buf.build/getstrm/pace:main | jq -r '.results[0].tags | sort_by(.name) | .[0] | ((.create_time | split(".")[0] | gsub("[^\\d]";"")) + "." + .commit[0:12])')
echo "BUF_DEPENDENCY_VERSION=${buf_dependency_version}" >> "$GITHUB_ENV"
# JVM artifact
Expand Down

0 comments on commit 690392f

Please sign in to comment.