Добавить .gitea/workflows/install.yaml
All checks were successful
Install MSI on Specific Runner / install_msi (push) Successful in 2s
All checks were successful
Install MSI on Specific Runner / install_msi (push) Successful in 2s
This commit is contained in:
18
.gitea/workflows/install.yaml
Normal file
18
.gitea/workflows/install.yaml
Normal file
@@ -0,0 +1,18 @@
|
||||
name: Install MSI on Specific Runner
|
||||
on: [push]
|
||||
|
||||
jobs:
|
||||
install_msi:
|
||||
# Указываем метку, которую мы прописали в config.yaml
|
||||
runs-on: self-hosted
|
||||
|
||||
steps:
|
||||
- name: Install MSI and Create Log
|
||||
shell: powershell
|
||||
run: |
|
||||
# 1. Тихая установка MSI
|
||||
# /i - установка, /qn - без интерфейса, /norestart - без перезагрузки
|
||||
Start-Process msiexec.exe -ArgumentList "/i C:\install\MAX.msi /qn /norestart" -Wait
|
||||
|
||||
# 2. Создание текстового файла
|
||||
"Installed successfully on $(hostname) at $(Get-Date)" | Out-File -FilePath "C:\install\git_MAX.txt" -Encoding utf8
|
||||
Reference in New Issue
Block a user