Make icinga2 --version display the actual git version

By default, actions/checkout sets fetch-depth to 1, meaning it will not fetch
enough information to use `git describe --tags` as used by our CMakeLists to
determine the version number. Setting it to 0 means to fetch all history.
This commit is contained in:
Julian Brost 2021-11-23 09:39:04 +01:00 committed by Alexander Aleksandrovič Klimov
parent 76b7f7b2e3
commit 2cf967828b

View File

@ -13,7 +13,7 @@ cache () {
mkimg () {
test -n "$TAG"
node /actions/checkout/dist/index.js |grep -vFe ::add-matcher::
env INPUT_FETCH-DEPTH=0 node /actions/checkout/dist/index.js |grep -vFe ::add-matcher::
cache restore
mkdir -p ccache