use env:GITHUB_WORKSPACE

This commit is contained in:
Benjamin Gebauer 2023-05-31 12:41:45 +02:00
parent fe00cb9121
commit 92d74eb7ee

View file

@ -4,9 +4,6 @@ on:
push: push:
branches: [ main ] branches: [ main ]
env:
TEST_SCRIPT: 'test1.ps1'
jobs: jobs:
build: build:
runs-on: windows-latest runs-on: windows-latest
@ -23,7 +20,8 @@ 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: ${{env.TEST_SCRIPT}} run: |
"$env:GITHUB_WORKSPACE\test1.ps1"
- name: Upload artifacts - name: Upload artifacts
uses: actions/upload-artifact@v2 uses: actions/upload-artifact@v2
with: with: