-
Notifications
You must be signed in to change notification settings - Fork 0
/
action.yml
45 lines (45 loc) · 1.59 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
name: "Setup GraphWalker"
description: "Set up a specific version of GraphWalker CLI."
branding:
icon: "git-pull-request"
color: "orange"
inputs:
python-version:
description: "Version range or exact version of Python or PyPy to use, using SemVer's version range syntax. Reads from .python-version if unset."
required: false
default: "3.10"
java-version:
description: "The Java version to set up. Takes a whole or semver Java version."
required: false
default: "17"
java-distribution:
description: "Java distribution."
required: false
default: "zulu"
graphwalker-version:
description: "Version range or exact version of GraphWalker to use, using SemVer's version syntax."
required: false
default: "4.3.2"
runs:
using: "composite"
steps:
- name: Setup Python ${{ inputs.python-version }}.
uses: actions/setup-python@v5
with:
python-version: ${{ inputs.python-version }}
- name: Setup Java ${{ inputs.java-version }}.
uses: actions/setup-java@v4
with:
distribution: ${{ inputs.java-distribution }}
java-version: ${{ inputs.java-version }}
- name: Install GraphWalker ${{ inputs.graphwalker-version }}.
shell: bash
run: |
curl -O https://raw.githubusercontent.com/altwalker/graphwalker-installer/main/install-graphwalker.py
python install-graphwalker.py ${{ inputs.graphwalker-version }}
rm install-graphwalker.py
- name: Add GraphWalker to PATH
shell: pwsh
if: runner.os == 'Windows'
run: |
"C:\Users\runneradmin\graphwalker" >> $env:GITHUB_PATH