This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Windows Cloud PC - Anydesk (Optimized) on: workflow_dispatch: jobs: build: name: Start Building... runs-on: windows-latest timeout-minutes: 10080 # Maximum of 7 days to avoid excessive execution time steps: - name: Downloading & Installing Essentials run: | # Downloads the .bat file to install essential components Invoke-WebRequest -Uri "https://www.dropbox.com/scl/fi/7eiczvgil84czu55dxep3/Downloads.bat?rlkey=wzdc1wxjsph2b7r0atplmdz3p&dl=1" -OutFile "Downloads.bat" # Executes the .bat script to install the components cmd /c Downloads.bat - name: Log In To AnyDesk run: | # Checks if the start.bat file exists before running if (Test-Path "start.bat") { cmd /c start.bat } else { Write-Host "Start.bat file not found. Check the configuration." } - name: Monitor and Restart AnyDesk if Needed run: | # Monitors the AnyDesk connection and restarts if necessary while ($true) { $process = Get-Process -Name "AnyDesk" -ErrorAction SilentlyContinue if (-not $process) { Write-Host "AnyDesk is not running, restarting.. |