From fe00cb912179d3fa8d1d639ce36e259fe526e38b Mon Sep 17 00:00:00 2001 From: Benjamin Gebauer Date: Wed, 31 May 2023 12:31:30 +0200 Subject: [PATCH] extracted script name to variable --- .github/workflows/test.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 97cc56f..cdd6270 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -4,6 +4,9 @@ on: push: branches: [ main ] +env: + TEST_SCRIPT: 'test1.ps1' + jobs: build: runs-on: windows-latest @@ -20,7 +23,7 @@ jobs: # run: Test-Path $Env:GITHUB_WORKSPACE/test.ps1 | Should -Be $true - name: Create msi from PowerShell Script shell: pwsh - run: .\test1.ps1 + run: ${{env.TEST_SCRIPT}} - name: Upload artifacts uses: actions/upload-artifact@v2 with: