-
Notifications
You must be signed in to change notification settings - Fork 16
/
action.yml
46 lines (45 loc) · 1.37 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
name: "FiveM Resource Watcher"
description: "Watches for changed resources and restarts them"
inputs:
restartIndividualResources:
description: "Restart resources individually or restart the whole server"
required: false
default: true
type: boolean
serverIP:
description: "IP of the FiveM server"
required: true
default: ""
serverPort:
description: "Port of the FiveM server"
required: false
default: 30120
rconPassword:
description: "Password that you have set for rcon"
required: true
default: ""
resourcesFolder:
description: "Resources folder name"
required: false
default: "resources"
restartServerWhen0Players:
description: "Restart the server instead when there are no players on the server. (Takes priority over restartIndividualReesources)"
required: false
default: false
type: boolean
resourcesToIgnore:
description: "List of resources that you want to ignore separated by spaces and not restart when changes are made to them"
required: false
default: ""
type: string
runs:
using: "docker"
image: "Dockerfile"
args:
- ${{ inputs.restartIndividualResources }}
- ${{ inputs.serverIP }}
- ${{ inputs.serverPort }}
- ${{ inputs.rconPassword }}
- ${{ inputs.resourcesFolder }}
- ${{ inputs.restartServerWhen0Players }}
- ${{ inputs.resourcesToIgnore }}