mt5-manager/.forgejo/workflows/runner-check.yml
24 lines
596 B
YAML
Yuriy Bykov
2026-10-30 15:00:54 +03:00
name: Check Windows runner
on:
workflow_dispatch:
push:
branches:
- article-23709
paths:
- .forgejo/workflows/runner-check.yml
Yuriy Bykov
2026-10-30 15:00:54 +03:00
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)