From 268ff26232b527a38a420a34980be8297d64011c Mon Sep 17 00:00:00 2001 From: Martin Diehl <mail@martin-diehl.net> Date: Sun, 8 May 2022 22:09:10 +0200 Subject: [PATCH] need powershell commands --- .github/workflows/Python.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/Python.yml b/.github/workflows/Python.yml index 9329fb6fc..15e04fb18 100644 --- a/.github/workflows/Python.yml +++ b/.github/workflows/Python.yml @@ -32,6 +32,13 @@ jobs: export VERSION=$(cat VERSION) echo ${VERSION%-*} > VERSION + - name: Strip git hash (Windows) + if: runner.os == 'Windows' + run: | + $VERSION = Get-Content VERSION -first 1 + $VERSION,$_ = $VERSION -Split '-g',2,"simplematch" + $VERSION | Out-File VERSION + - name: Install and run unit tests (Unix) if: runner.os != 'Windows' run: |