Skip to content

Commit

Permalink
Fix recording
Browse files Browse the repository at this point in the history
  • Loading branch information
ShaunLawrie committed Mar 14, 2024
1 parent 03fce2a commit b023ef2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/unit-test-only.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,15 @@ jobs:
unit-test:
name: Unit Test
runs-on: ubuntu-latest
if: github.repository_owner != 'ShaunLawrie' || !(github.ref == 'refs/heads/main' && github.ref == 'refs/heads/prerelease')
if: github.repository_owner != 'ShaunLawrie' || (github.ref != 'refs/heads/main' && github.ref != 'refs/heads/prerelease')
steps:
- name: Check out repository code
uses: actions/checkout@v4
- name: Unit Test
shell: pwsh
run: |
$ErrorActionPreference = "Stop"
Write-Host "Working on ${{ github.ref }}"
& .\PwshSpectreConsole\Build.ps1
$env:PSModulePath = @($env:PSModulePath, ".\PwshSpectreConsole\") -join ":"
$PSVersionTable | Out-Host
Expand Down
2 changes: 1 addition & 1 deletion PwshSpectreConsole/public/demo/Start-SpectreRecording.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ function Start-SpectreRecording {
[switch] $Quiet
)

if(!$global:SpectreRecordingType) {
if($global:SpectreRecordingType) {
throw "A $global:SpectreRecordingType recording has already started"
}

Expand Down

0 comments on commit b023ef2

Please sign in to comment.