We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3004f9e commit a6e1129Copy full SHA for a6e1129
1 file changed
action.yml
@@ -38,16 +38,7 @@ runs:
38
import sys, os
39
import json
40
41
- json_file = r"${{ github.action_path }}bin/resources.json"
42
- print("Reading '{}'".format(json_file))
43
- print("Reading '{}'".format(str(json_file)))
44
- try:
45
- from pathlib import Path
46
- json_file = str(Path(json_file).resolve())
47
- except ImportError:
48
- pass
49
-
50
- with open(json_file, "r") as f:
+ with open(r"${{ github.action_path }}bin/resources.json", "r") as f:
51
json_content = json.load(f)
52
53
matching_versions = list(filter(lambda el: el["version"] == "${{ inputs.jython-version }}".strip(), json_content))
0 commit comments