name: Check Windows runner on: workflow_dispatch: push: branches: - article-23709 paths: - .forgejo/workflows/runner-check.yml jobs: check: runs-on: mt5-vps timeout-minutes: 5 steps: - name: Check Windows and PowerShell shell: powershell run: | $ErrorActionPreference = 'Stop' if ($env:OS -ne 'Windows_NT') { throw 'This workflow requires a Windows runner.' } Write-Output 'Windows runner is working.' Write-Output ('PowerShell version: {0}' -f $PSVersionTable.PSVersion)