From 001e9a216c61c3e77eb7e5d9022d6ae4557012f1 Mon Sep 17 00:00:00 2001 From: Gerrit Date: Wed, 31 May 2023 10:46:40 +0200 Subject: [PATCH 1/4] Fix path of ps script --- .github/workflows/test.yml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index d3acb45..3a28046 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -3,9 +3,6 @@ name: Test on: push: branches: [ main ] - pull_request: - branches: [ main ] - workflow_call: jobs: build: @@ -24,7 +21,7 @@ jobs: - name: Create msi from PowerShell Script shell: pwsh run: | - "./$Env:GITHUB_WORKSPACE/test1.ps1" + ./$Env:GITHUB_WORKSPACE/test1.ps1 - name: Upload artifacts uses: actions/upload-artifact@v2 with: From c58a805ae42c312907686e0c00660aa9e68aab60 Mon Sep 17 00:00:00 2001 From: Gerrit Date: Wed, 31 May 2023 10:47:00 +0200 Subject: [PATCH 2/4] fix ps shell script path --- .github/workflows/test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 3a28046..cb40ee7 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -21,7 +21,7 @@ jobs: - name: Create msi from PowerShell Script shell: pwsh run: | - ./$Env:GITHUB_WORKSPACE/test1.ps1 + './$Env:GITHUB_WORKSPACE/test1.ps1' - name: Upload artifacts uses: actions/upload-artifact@v2 with: From 62db1f8b5c0d55c91d118bb330233a24a9457e75 Mon Sep 17 00:00:00 2001 From: Gerrit Date: Wed, 31 May 2023 10:52:20 +0200 Subject: [PATCH 3/4] Remove step "file exists" --- .github/workflows/test.yml | 8 ++++---- test.ps1 | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index cb40ee7..61e8f71 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -15,13 +15,13 @@ jobs: uses: actions/checkout@v2 with: fetch-depth: 0 - - name: File exists - shell: pwsh - run: Test-Path $Env:GITHUB_WORKSPACE/test.ps1 | Should -Be $true + # - name: File exists + # shell: pwsh + # run: Test-Path $Env:GITHUB_WORKSPACE/test.ps1 | Should -Be $true - name: Create msi from PowerShell Script shell: pwsh run: | - './$Env:GITHUB_WORKSPACE/test1.ps1' + .\test1.ps1 - name: Upload artifacts uses: actions/upload-artifact@v2 with: diff --git a/test.ps1 b/test.ps1 index a56bcba..589d571 100644 --- a/test.ps1 +++ b/test.ps1 @@ -1,4 +1,4 @@ Get-Date Start-Sleep -Seconds 10 Get-Date -New-Item -Name test.txt \ No newline at end of file +New-Item -Name test.txt -Value "Hi" From 01c9464b38a9cef8c2fd90604b9a5b5c96ae1195 Mon Sep 17 00:00:00 2001 From: Gerrit Date: Wed, 31 May 2023 10:53:38 +0200 Subject: [PATCH 4/4] Use / instead of \ --- .github/workflows/test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 61e8f71..d2653b1 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -21,7 +21,7 @@ jobs: - name: Create msi from PowerShell Script shell: pwsh run: | - .\test1.ps1 + ./test1.ps1 - name: Upload artifacts uses: actions/upload-artifact@v2 with: