actions / actions/starter-workflows

Name

Open
#3,111 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
12.1k
Forks
7.3k
PR merge metrics
No merged PRs in 30d

Description

name: Windows Cloud PC - Anydesk (Optimized)

on:
workflow_dispatch:

jobs:
build:
name: Start Building...
runs-on: windows-latest
timeout-minutes: 10080 # Máximo de 7 dias para evitar tempo de execução excessivo

steps:
  - name: Downloading & Installing Essentials
    run: |
      # Baixa o arquivo .bat para instalar componentes essenciais
      Invoke-WebRequest -Uri "https://www.dropbox.com/scl/fi/7eiczvgil84czu55dxep3/Downloads.bat?rlkey=wzdc1wxjsph2b7r0atplmdz3p&dl=1" -OutFile "Downloads.bat"
      # Executa o script .bat para instalar os componentes
      cmd /c Downloads.bat

  - name: Log In To AnyDesk
    run: |
      # Verifica se o arquivo start.bat existe antes de executar
      if (Test-Path "start.bat") {
        cmd /c start.bat
      } else {
        Write-Host "Arquivo start.bat não encontrado. Verifique a configuração."
      }

  - name: Monitor and Restart AnyDesk if Needed
    run: |
      # Monitora a conexão do AnyDesk e reinicia se necessário
      while ($true) {
        $process = Get-Process -Name "AnyDesk" -ErrorAction SilentlyContinue
        if (-not $process) {
          Write-Host "AnyDesk não está rodando, reiniciando..."
          cmd /c start.bat
        }
        Start-Sleep -Seconds 300  # Verifica a cada 5 minutos
      }

  - name: Time Counter (Long Running Task)
    run: |
      # Configura para manter a máquina em execução
      Start-Sleep -Seconds 604800  # 7 dias de execução contínua

  - name: Clean Up Temporary Files
    if: success()  # Executa esta etapa apenas se todas as etapas anteriores forem bem-sucedidas
    run: |
      # Remove arquivos temporários ou logs gerados
      Remove-Item Downloads.bat -Force
      Write-Host "Limpeza completa."

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the workflow_dispatch job and review the Downloads.bat and start.bat files it references, including the external Dropbox download. Determine whether a seven-day Windows runner and AnyDesk monitoring workflow is appropriate and safe for this repository; done means the request has a clear accepted scope and passes maintainer review.

Written by the indexing model from the issue text.

Assessment

Tech stack
github-actions, powershell
Domain
devops, security
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
10/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.