extracted script name to variable

This commit is contained in:
Benjamin Gebauer 2023-05-31 12:31:30 +02:00
parent 2f3a9f2d5f
commit fe00cb9121

View file

@ -4,6 +4,9 @@ on:
push: push:
branches: [ main ] branches: [ main ]
env:
TEST_SCRIPT: 'test1.ps1'
jobs: jobs:
build: build:
runs-on: windows-latest runs-on: windows-latest
@ -20,7 +23,7 @@ jobs:
# run: Test-Path $Env:GITHUB_WORKSPACE/test.ps1 | Should -Be $true # run: Test-Path $Env:GITHUB_WORKSPACE/test.ps1 | Should -Be $true
- name: Create msi from PowerShell Script - name: Create msi from PowerShell Script
shell: pwsh shell: pwsh
run: .\test1.ps1 run: ${{env.TEST_SCRIPT}}
- name: Upload artifacts - name: Upload artifacts
uses: actions/upload-artifact@v2 uses: actions/upload-artifact@v2
with: with: