-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
action.yaml
47 lines (42 loc) · 1.54 KB
/
action.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
name: "Setup VoiceAttack"
author: "alterNERDtive"
branding:
icon: "tool"
color: "gray-dark"
description: "Setup VoiceAttack for referencing in .Net projects"
inputs:
path:
description: "Installation path"
required: false
default: "C:\\Program Files\\VoiceAttack"
beta:
description: "Download VoiceAttack beta"
required: false
default: false
version:
descrpition: "VoiceAttack “version” you can use to invalidate the cache"
required: false
default: 0
runs:
using: "composite"
steps:
- name: "Cache VoiceAttack installer"
id: "cache"
uses: actions/cache@v3
env:
cache-name: "voiceattack"
with:
path: ${{ inputs.path }}
key: ${{ env.cache-name }}-${{ inputs.version }}
- name: "Download Beta installer"
if: steps.cache.outputs.cache-hit != 'true' && inputs.beta == 'true'
run: curl.exe -o VoiceAttackSetup.exe https://voiceattack.com/FileSend.aspx?id=VoiceAttackInstaller64__Beta.exe
shell: pwsh
- name: "Download installer"
if: steps.cache.outputs.cache-hit != 'true' && inputs.beta != 'true'
run: curl.exe -o VoiceAttackSetup.exe https://voiceattack.com/FileSend.aspx?id=VoiceAttackInstaller64.exe
shell: pwsh
- name: "Install VoiceAttack"
if: steps.cache.outputs.cache-hit != 'true'
run: Start-Process -FilePath .\VoiceAttackSetup.exe -Wait -Argumentlist "/sp- /verysilent /dir=""${{ inputs.path }}"" /suppressmsgboxes /norestart /nocloseapplications /norestartapplications /noicons"
shell: pwsh