aboutsummaryrefslogtreecommitdiffstats
path: root/.github
diff options
context:
space:
mode:
authorsaturneric <[email protected]>2024-11-21 22:15:22 +0000
committersaturneric <[email protected]>2024-11-21 22:15:22 +0000
commit2bd2f47f7f56b57a02112f522908b9a6c471f229 (patch)
treeffa3fbcd74e4be0dee0a7c1e690b8b189f50fe89 /.github
parentfeat: set a better display name under developing and testing (diff)
downloadGpgFrontend-2bd2f47f7f56b57a02112f522908b9a6c471f229.tar.gz
GpgFrontend-2bd2f47f7f56b57a02112f522908b9a6c471f229.zip
fix: short git commit sha on windows workflow not working
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/release-nightly.yml5
1 files changed, 4 insertions, 1 deletions
diff --git a/.github/workflows/release-nightly.yml b/.github/workflows/release-nightly.yml
index 7c3d1148..0f06eea3 100644
--- a/.github/workflows/release-nightly.yml
+++ b/.github/workflows/release-nightly.yml
@@ -285,12 +285,15 @@ jobs:
cmake --build . --config ${{env.BUILD_TYPE}} -- -j 4
if: matrix.os == 'windows-2019'
+ - name: Get short SHA of Git Commit (Windows)
+ run: echo "SHORT_SHA=$("${{ github.sha }}".SubString(0, 8))" >> $env:GITHUB_ENV
+ if: matrix.os == 'windows-2019'
+
- name: Copy Modules & Package (Windows)
shell: msys2 {0}
run: |
echo "BUILD_TYPE_LOWER=${BUILD_TYPE,,}" >> ${GITHUB_ENV}
echo "SHORT_SHA=`echo ${GITHUB_SHA} | cut -c1-8`" >> ${GITHUB_ENV}
-
cd $(echo "/${{github.workspace}}" | sed 's/\\/\//g' | sed 's/://')
mkdir -p build/artifacts/modules
cp -r modules/build/artifacts/bin/* build/artifacts/modules