Skip to content

Commit

Permalink
Update to 1.19 and more recent tags for setup-python and cache actions
Browse files Browse the repository at this point in the history
  • Loading branch information
vberlier committed Dec 3, 2022
1 parent 740e5fb commit 4478303
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ This github action installs [`mecha`](https://github.com/mcbeet/mecha) in an iso
| ----------- | --------------------- | -------------------------------------------------------------- |
| `version` | defaults to `latest` | The version of mecha to install |
| `source` | required | The list of data packs, functions files or folders to validate |
| `minecraft` | defaults to `1.17` | The version of minecraft to use for checking commands |
| `minecraft` | defaults to `1.19` | The version of minecraft to use for checking commands |
| `stats` | defaults to `false` | Whether to output statistics |
| `log` | defaults to `WARNING` | The output log level |

Expand Down
18 changes: 9 additions & 9 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,39 +10,39 @@ inputs:
version:
description: The version of mecha to install
required: true
default: 'latest'
default: "latest"
source:
description: The list of data packs, functions files or folders to validate
required: true
minecraft:
description: The version of minecraft to use for checking commands
required: true
default: '1.17'
default: "1.19"
stats:
description: Whether to output statistics
required: true
default: "false"
log:
description: The output log level
required: true
default: 'WARNING'
default: "WARNING"

runs:
using: composite
steps:
- name: Setup python
uses: actions/setup-python@v2
- name: Set up Python 3.10
uses: actions/setup-python@v4
with:
python-version: '3.9'
python-version: "3.10"
- name: Setup cache
id: cached-mecha-venv
uses: actions/cache@v2
id: cache-mecha-venv
uses: actions/cache@v3
with:
path: ~/.mecha_venv
key: mecha-venv-${{ runner.os }}-${{ inputs.version }}
- name: Run mecha
env:
CACHE_HIT: ${{ steps.cached-mecha-venv.outputs.cache-hit }}
CACHE_HIT: ${{ steps.cache-mecha-venv.outputs.cache-hit }}
MECHA_VERSION: ${{ inputs.version }}
MECHA_SOURCE: ${{ inputs.source }}
MECHA_MINECRAFT: ${{ inputs.minecraft }}
Expand Down

0 comments on commit 4478303

Please sign in to comment.