Skip to content

Commit 03e7edc

Browse files
committed
docs: Add example
1 parent 492c60b commit 03e7edc

1 file changed

Lines changed: 20 additions & 1 deletion

File tree

README.md

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,21 @@
11
# setup-jython
2-
Github action that downloads and installs Jython
2+
3+
[![Jython tests](https://github.com/LukeSavefrogs/setup-jython/actions/workflows/test-action.yml/badge.svg)](https://github.com/LukeSavefrogs/setup-jython/actions/workflows/test-action.yml)
4+
5+
This action provides the following functionality for GitHub Actions users:
6+
7+
- Installing a version of Jython and adding it to `PATH`
8+
9+
## Basic usage
10+
11+
```yml
12+
steps:
13+
- uses: actions/checkout@v3
14+
15+
- name: Install Jython
16+
uses: actions/setup-jython@v1
17+
with:
18+
jython-version: '2.5.2'
19+
20+
- run: jython -c 'import sys, os; print(os.name, sys.version)';
21+
```

0 commit comments

Comments
 (0)