try to upload only if create step has finished

This commit is contained in:
Benjamin Gebauer 2023-05-31 13:02:29 +02:00
parent edd542e067
commit b3c1865668

View file

@ -19,10 +19,12 @@ jobs:
# shell: pwsh
# run: Test-Path $Env:GITHUB_WORKSPACE/test.ps1 | Should -Be $true
- name: Create msi from PowerShell Script
id: create
shell: pwsh
run: |
"$env:GITHUB_WORKSPACE/test1.ps1"
- name: Upload artifacts
if: steps.create.outcome == 'success'
uses: actions/upload-artifact@v3
with:
name: installer