From 2cf967828b945f6ef03c44ab8dda0dd50114d4b3 Mon Sep 17 00:00:00 2001 From: Julian Brost Date: Tue, 23 Nov 2021 09:39:04 +0100 Subject: [PATCH] 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. --- action.bash | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/action.bash b/action.bash index 401d5df..d8858cf 100755 --- a/action.bash +++ b/action.bash @@ -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