Run ps script

This commit is contained in:
Gerrit 2023-05-31 13:48:42 +02:00
parent 0d9bf69b5c
commit ba8e248396

View file

@ -15,20 +15,9 @@ jobs:
uses: actions/checkout@v3 uses: actions/checkout@v3
with: with:
fetch-depth: 0 fetch-depth: 0
# - name: File exists
# shell: pwsh
# run: Test-Path $Env:GITHUB_WORKSPACE/test.ps1 | Should -Be $true
- name: Create msi from PowerShell Script - name: Create msi from PowerShell Script
id: create run: pwsh -command ".\$GITHUB_WORKSPACE\test.ps1"
shell: pwsh
run: |
Get-Date
Start-Sleep -Seconds 10
Get-Date
New-Item -Name test.txt -Value "Hi"
# "$env:GITHUB_WORKSPACE/test1.ps1"
- name: Upload artifacts - name: Upload artifacts
if: steps.create.outcome == 'success'
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v3
with: with:
name: installer name: installer