-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaction.yml
78 lines (78 loc) · 3.46 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
77
78
name: 'Lucee Script Runner'
description: 'Run Lucee via the command line'
inputs:
luceeVersion:
description: Lucee Version to run, i.e. "light-6.0.3.1", "5.4.6.9", "zero-6.0.3.1"
required: true
luceeVersionQuery:
description: Lucee Version Query to run (overrides luceeVersion, i.e. "5.4/stable/light", "6.1/snapshot/jar", "6/stable/zero" )
default: ""
webroot:
description: webroot directory
required: true
execute:
description: cfml script to execute
required: true
extensions:
description: any additional extensions to install
default: ""
extensionDir:
description: a directory containing any Lucee *.lex extentions to manually install
default: ""
compile:
description: compile the cfml code under the webroot
default: "false"
antFlags:
description: additional flags to pass to ant
default: ""
debugger:
description: enable java debugging on port 5000 with suspend=y (not for CI, it will just hang waiting for you to connect a debugger)
default: "false"
luceeCFConfig:
description: pass in a path to a complete .CFConfig.json file (not like configImport!)
default: ""
preCleanup:
description: purge the directory Lucee is deployed into before starting
default: "true"
postCleanup:
description: purge the directory Lucee is deployed into after finishing
default: "true"
runs:
using: "composite"
steps:
- if: runner.os != 'Windows'
run: |
pwd
echo luceeVersion ${{ inputs.luceeVersion }}
echo luceeVersionQuery ${{ inputs.luceeVersionQuery }}
echo webroot ${{ inputs.webroot }}
echo execute ${{ inputs.execute }}
echo extensions ${{ inputs.extensions }}
echo extensionDir ${{ inputs.extensionDir }}
echo compile ${{ inputs.compile }}
echo luceeCFConfig:${{inputs.luceeCFConfig}}
ant -buildfile "${{ github.action_path }}/build.xml" ${{ inputs.antFlags }} -DluceeVersion="${{ inputs.luceeVersion }}" -DluceeVersionQuery="${{ inputs.luceeVersionQuery }}" \
-Dwebroot="${{ inputs.webroot }}" -Dexecute="${{ inputs.execute }}" \
-Dextensions="${{ inputs.extensions }}" -DextensionDir="${{ inputs.extensionDir }}" \
-Dcompile="${{ inputs.compile }}" -Ddebugger="${{ inputs.debugger }}" \
-DluceeCFConfig="${{inputs.luceeCFConfig}}" \
-DpreCleanup="${{inputs.preCleanup}}" -DpostCleanup="${{inputs.postCleanup}}"
shell: bash
- if: runner.os == 'Windows'
run: |
pwd
echo luceeVersion ${{ inputs.luceeVersion }}
echo luceeVersionQuery ${{ inputs.luceeVersionQuery }}
echo webroot ${{ inputs.webroot }}
echo execute ${{ inputs.execute }}
echo extensions ${{ inputs.extensions }}
echo extensionDir ${{ inputs.extensionDir }}
echo compile ${{ inputs.compile }}
echo luceeCFConfig:${{inputs.luceeCFConfig}}
ant -buildfile "${{ github.action_path }}/build.xml" ${{ inputs.antFlags }} ^
-DluceeVersion="${{ inputs.luceeVersion }}" -DluceeVersionQuery="${{ inputs.luceeVersionQuery }}" ^
-Dwebroot="${{ inputs.webroot }}" -Dexecute="${{ inputs.execute }}" -Dextensions="${{ inputs.extensions }}" ^
-DextensionDir="${{ inputs.extensionDir }}" -Dcompile="${{ inputs.compile }}" ^
-Ddebugger="${{ inputs.debugger }}" -DluceeCFConfig="${{inputs.luceeCFConfig}}" ^
-DpreCleanup="${{inputs.preCleanup}}" -DpostCleanup="${{inputs.postCleanup}}"
shell: cmd