Skip to content

Commit

Permalink
Fix release workflow (#17)
Browse files Browse the repository at this point in the history
* Fix release workflow

* Remove --exit-code flag
  • Loading branch information
jack-berg authored Sep 1, 2023
1 parent d81241f commit 1e5250c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/prepare-release-branch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,12 @@ jobs:
- name: Create release branch
run: |
version=$(.github/scripts/get-version.sh)
if [[ $version =~ ^([0-9]+)\.([0-9]+)\.0$ ]]; then
if [[ $version =~ ^([0-9]+)\.([0-9]+)\.([0-9]+)$ ]]; then
release_branch_name="release/v${version}"
git ls-remote --exit-code --heads origin refs/heads/$release_branch_name
if [ "$?" == "0" ] ; then
release_branch_exists=$(git ls-remote --heads origin refs/heads/$release_branch_name)
if [[ $release_branch_exists != "" ]] ; then
echo "release branch $release_branch_name already exists"
exit 1
exit 1
fi
else
echo "unexpected version: $version"
Expand Down
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# Changelog

## Unreleased

* Move to `io.opentelemetry.semnconv.*` package
([#14](https://github.com/open-telemetry/semantic-conventions-java/pull/14))
* Update to semantic conventions v1.21.0
([#9](https://github.com/open-telemetry/semantic-conventions-java/pull/9))

0 comments on commit 1e5250c

Please sign in to comment.