-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaction.yml
51 lines (44 loc) · 1.57 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
name: JBang Catalog Document Generator
description: 'Document your JBang Catalog with ease.'
branding:
icon: 'clipboard'
color: 'blue'
inputs:
version:
description: 'The version of JBang Catalog Document Generator to download and use.'
default: ${{ github.action_ref }}
required: true
arguments:
description: 'The command-line arguments to be passed to CLI application.'
default: 'generate jbang-catalog.json'
required: true
working-directory:
required: true
default: ${{ github.workspace }}
description: 'The directory to change into.'
setup-java:
default: 'true'
description: 'Setup internal Java runtime.'
required: false
runs:
using: 'composite'
steps:
- name: 'Setup GraalVM 22.3.0'
uses: graalvm/setup-graalvm@v1
if: ${{ inputs.setup-java == 'true' }}
with:
version: '22.3.0'
java-version: '17'
- name: 'Download the specified JBang Catalog Document Generator'
shell: bash
working-directory: ${{ inputs.working-directory }}
run: |
echo "Downloading JBang Catalog Document Generator ${{ inputs.version }}"
${{ github.action_path }}/download-cli-tool.sh ${{ inputs.version }}
java -jar jbang-catalog-document-generator-cli.jar --version
- name: 'Execute the CLI application'
shell: bash
working-directory: ${{ inputs.working-directory }}
run: |
echo "Executing 'java -jar jbang-catalog-document-generator-cli.jar ${{ inputs.arguments }}'"
java -jar jbang-catalog-document-generator-cli.jar ${{ inputs.arguments }}