From 2ff6addbe6c370facd317ad2b1e5a836f9266c9b Mon Sep 17 00:00:00 2001 From: Maschell Date: Wed, 19 Jul 2023 18:50:14 +0200 Subject: [PATCH] Fix nightly-hash for PR --- .github/workflows/pr.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index 70a440d..7cf01e1 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -17,7 +17,7 @@ jobs: - uses: actions/checkout@v3 - name: create version.h run: | - git_hash=$(git rev-parse --short "$GITHUB_SHA") + git_hash=$(git rev-parse --short "${{ github.event.pull_request.head.sha }}") cat < ./source/version.h #pragma once #define MODULE_VERSION_EXTRA " (nightly-$git_hash)" @@ -29,4 +29,4 @@ jobs: - uses: actions/upload-artifact@master with: name: binary - path: "*.wms" \ No newline at end of file + path: "*.wms"