From da093a8aec7d3e5030f7ef4b0813f1d8160f47f5 Mon Sep 17 00:00:00 2001 From: solopasha Date: Wed, 3 May 2023 22:50:33 +0300 Subject: [PATCH] quote hash for the GIT_COMMIT_HASH macro (#2227) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit otherwise compilation fails with smth like ``` ../src/debug/../plugins/../defines.hpp:1:25: error: ‘f27873a6f06dc2f87600edb890f3c38298bfb55f’ was not declared in this scope ``` --- .github/workflows/release.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index a092d07c..bed49001 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -18,7 +18,7 @@ jobs: - name: Create tarball with submodules id: tar run: | - sed -i "1s/^/#define GIT_COMMIT_HASH $(git rev-parse HEAD)\n#define GIT_TAG \"$(git describe --tags)\"\n/" ./src/defines.hpp + sed -i "1s/^/#define GIT_COMMIT_HASH \"$(git rev-parse HEAD)\"\n#define GIT_TAG \"$(git describe --tags)\"\n/" ./src/defines.hpp mkdir hyprland-source; mv ./* ./hyprland-source || tar -czv --owner=0 --group=0 --no-same-owner --no-same-permissions -f source.tar.gz * - id: whatrelease