Skip to content

Commit

Permalink
Fix version computation in .github/workflows/ubuntu-*.yml
Browse files Browse the repository at this point in the history
* .github/workflows/ubuntu-bionic.yml: allow tag to be of the form
  release-X.Y.Z and do not increment minor component of the version
* .github/workflows/ubuntu-focal.yml: likewise
  • Loading branch information
scymtym committed Jun 7, 2022
1 parent 13088db commit 2c5c59b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ubuntu-bionic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -914,7 +914,7 @@ jobs:
# Get precise version from git and write into version-string.sexp
tag='release-*'
git describe --long --dirty=-dirty --tags --match "${tag}" \
| sed -re 's/release-([0-9])+\.([0-9]+)-([0-9]+)-(.*)/echo "\\"\1.$((\2 + 1)).\3\\""/' \
| sed -re 's/release-([0-9])+\.([0-9]+(\.[0-9]+)?)-([0-9]+)-(.*)/echo "\\"\1.\2.\4\\""/' \
| sh \
> version-string.sexp
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ubuntu-focal.yml
Original file line number Diff line number Diff line change
Expand Up @@ -914,7 +914,7 @@ jobs:
# Get precise version from git and write into version-string.sexp
tag='release-*'
git describe --long --dirty=-dirty --tags --match "${tag}" \
| sed -re 's/release-([0-9])+\.([0-9]+)-([0-9]+)-(.*)/echo "\\"\1.$((\2 + 1)).\3\\""/' \
| sed -re 's/release-([0-9])+\.([0-9]+(\.[0-9]+)?)-([0-9]+)-(.*)/echo "\\"\1.\2.\4\\""/' \
| sh \
> version-string.sexp
Expand Down

0 comments on commit 2c5c59b

Please sign in to comment.