Work on release process.

pull/780/head
Fredrik Öhrström 2022-12-29 18:56:28 +01:00
rodzic ad7ace4918
commit e26ada4957
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -35,8 +35,8 @@ parts:
source-type: git
override-pull: |
craftctl default
if [ -n "$(git describe --tags | grep -)" ]; then
GIT_REV="$(git describe --tags | cut -f1,2 -d'-')"
if [ -n "$(git describe --tags | grep -E -- '-[^-RC]+$')" ]; then
GIT_REV="$(git describe --tags | rev | cut -f2- -d'-' | rev)"
craftctl set version="$GIT_REV"
craftctl set grade=devel
else