try powershell methods directly without script

This commit is contained in:
Benjamin Gebauer 2023-05-31 13:35:45 +02:00
parent b3c1865668
commit 0d9bf69b5c

View file

@ -22,7 +22,11 @@ jobs:
id: create
shell: pwsh
run: |
"$env:GITHUB_WORKSPACE/test1.ps1"
Get-Date
Start-Sleep -Seconds 10
Get-Date
New-Item -Name test.txt -Value "Hi"
# "$env:GITHUB_WORKSPACE/test1.ps1"
- name: Upload artifacts
if: steps.create.outcome == 'success'
uses: actions/upload-artifact@v3