-
Notifications
You must be signed in to change notification settings - Fork 0
/
action.yml
76 lines (76 loc) · 2.3 KB
/
action.yml
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
# action.yml
name: 'Opcache Reset'
description: 'Reset PHP opcache on the server'
inputs:
domain:
description: 'The domain to visit to clear opcache for'
required: true
webroot:
description: "The path of the site's webroot"
required: true
php_executable:
description: 'The PHP executable to use'
required: false
default: 'php'
owner:
description: 'The user who should own the file'
required: false
group:
description: 'The group the file should belong to'
required: false
permissions:
description: 'The octal permissions to use'
required: false
default: "644"
ssh_user:
description: 'The user to connect to the server as'
required: true
ssh_host:
description: 'The hostname or IP to use for connecting via SSH'
required: true
ssh_port:
description: 'The SSH port for the server'
required: false
default: "22"
ssh_key:
description: 'The SSH key for connecting to the server'
required: true
max_attempts_opcache_reset_http:
description: 'The number of times to try the opcache reset HTTP request. Set to 0 to disable'
required: false
default: "10"
max_attempts_opcache_reset_cli:
description: 'The number of times to try the opcache reset CLI command. Set to 0 to disable'
required: false
default: "1"
delay_attempts_opcache_reset_http:
description: 'The number of seconds to wait between opcache reset HTTP attempts'
required: false
default: "5"
delay_attempts_opcache_reset_cli:
description: 'The number of seconds to wait between opcache reset CLI attempts'
required: false
default: "5"
secret:
description: 'Secret variable to validate opcache reset request by.'
required: false
default: null
runs:
using: "docker"
image: "Dockerfile"
args:
- ${{ inputs.domain }}
- ${{ inputs.webroot }}
- ${{ inputs.php_executable }}
- ${{ inputs.owner }}
- ${{ inputs.group }}
- ${{ inputs.permissions }}
- ${{ inputs.ssh_user }}
- ${{ inputs.ssh_host }}
- ${{ inputs.ssh_port }}
- ${{ inputs.ssh_key }}
- ${{ inputs.max_attempts_opcache_reset_http }}
- ${{ inputs.max_attempts_opcache_reset_cli }}
- ${{ inputs.delay_attempts_opcache_reset_http }}
- ${{ inputs.delay_attempts_opcache_reset_cli }}
- ${{ inputs.secret }}