Merge pull request #5 from snapcrafters/fix-pulling-tags

Fix pulling tags
This commit is contained in:
Alan Pope 2019-04-12 15:08:43 +01:00 committed by GitHub
commit 101df00634
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -31,7 +31,7 @@ parts:
plugin: dump
override-pull: |
snapcraftctl pull
last_committed_tag="$(git tag | sort -V | grep ^0 | grep -v dev | tail -n 1)"
last_committed_tag="$(git for-each-ref --sort=taggerdate --format '%(tag)' refs/tags | tail -n 1)"
last_released_tag="$(snap info minetest | awk '$1 == "beta:" { print $2 }')"
# If the latest tag from the upstream project has not been released to
# beta, build that tag instead of master.
@ -47,7 +47,7 @@ parts:
source: https://github.com/minetest/minetest.git
override-pull: |
snapcraftctl pull
last_committed_tag="$(git tag | sort -V | grep ^0 | grep -v dev | tail -n 1)"
last_committed_tag="$(git for-each-ref --sort=taggerdate --format '%(tag)' refs/tags | tail -n 1)"
last_released_tag="$(snap info minetest | awk '$1 == "beta:" { print $2 }')"
# If the latest tag from the upstream project has not been released to
# beta, build that tag instead of master.