From 3aa17b93668566982103e0ff8e7c0586c1381ee2 Mon Sep 17 00:00:00 2001 From: Mikusch Date: Sun, 10 Dec 2023 01:57:57 +0100 Subject: [PATCH] Allow tabs in the version define --- .github/workflows/compile.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/compile.yml b/.github/workflows/compile.yml index 1605514..4d73b32 100644 --- a/.github/workflows/compile.yml +++ b/.github/workflows/compile.yml @@ -41,7 +41,7 @@ jobs: - name: Extract plugin version id: version run: | - VERSION=$(grep -oP '#define PLUGIN_VERSION "\K[^"]+' addons/sourcemod/scripting/${{ env.PLUGIN_NAME }}.sp) + VERSION=$(grep -oP '#define PLUGIN_VERSION\s+"\K[^"]+' addons/sourcemod/scripting/${{ env.PLUGIN_NAME }}.sp) echo "PLUGIN_VERSION=$VERSION" >> $GITHUB_ENV - name: Compile plugin