Skip to content

Commit fa591b1

Browse files
committed
Update README
1 parent dd5a359 commit fa591b1

File tree

1 file changed

+36
-2
lines changed

1 file changed

+36
-2
lines changed

README.md

+36-2
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,36 @@
1-
# check-commands
2-
Github action for checking minecraft commands.
1+
# Check minecraft commands
2+
3+
> Github action to validate minecraft data packs and function files.
4+
5+
```yml
6+
# .github/workflows/check-commands.yml
7+
name: Check commands
8+
on: [push]
9+
10+
jobs:
11+
check:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: mcbeet/check-commands@v1
15+
with:
16+
source: path/to/my_data_pack
17+
```
18+
19+
## Usage
20+
21+
This github action installs [`mecha`](https://github.com/mcbeet/mecha) in an isolated virtualenv and checks your data pack and function files for errors. The inputs of the action reflect the [`mecha` command-line options](https://github.com/mcbeet/mecha#command-line-utility). Only the `source` input is required.
22+
23+
| Input | Optional | Description |
24+
| ----------- | --------------------- | -------------------------------------------------------------- |
25+
| `version` | defaults to `latest` | The version of mecha to install |
26+
| `source` | required | The list of data packs, functions files or folders to validate |
27+
| `minecraft` | defaults to `1.17` | The version of minecraft to use for checking commands |
28+
| `log` | defaults to `WARNING` | The output log level |
29+
30+
## Contributing
31+
32+
Contributions are welcome. Make sure to first open an issue discussing the problem or the new feature before creating a pull request. If you find a bug please try to share a link the problematic action run.
33+
34+
---
35+
36+
License - [MIT](https://github.com/mcbeet/check-commands/blob/main/LICENSE)

0 commit comments

Comments
 (0)