You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
> 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.
| `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.
0 commit comments