Skip to content

Commit 4478303

Browse files
committed
Update to 1.19 and more recent tags for setup-python and cache actions
1 parent 740e5fb commit 4478303

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ This github action installs [`mecha`](https://github.com/mcbeet/mecha) in an iso
2828
| ----------- | --------------------- | -------------------------------------------------------------- |
2929
| `version` | defaults to `latest` | The version of mecha to install |
3030
| `source` | required | The list of data packs, functions files or folders to validate |
31-
| `minecraft` | defaults to `1.17` | The version of minecraft to use for checking commands |
31+
| `minecraft` | defaults to `1.19` | The version of minecraft to use for checking commands |
3232
| `stats` | defaults to `false` | Whether to output statistics |
3333
| `log` | defaults to `WARNING` | The output log level |
3434

action.yml

+9-9
Original file line numberDiff line numberDiff line change
@@ -10,39 +10,39 @@ inputs:
1010
version:
1111
description: The version of mecha to install
1212
required: true
13-
default: 'latest'
13+
default: "latest"
1414
source:
1515
description: The list of data packs, functions files or folders to validate
1616
required: true
1717
minecraft:
1818
description: The version of minecraft to use for checking commands
1919
required: true
20-
default: '1.17'
20+
default: "1.19"
2121
stats:
2222
description: Whether to output statistics
2323
required: true
2424
default: "false"
2525
log:
2626
description: The output log level
2727
required: true
28-
default: 'WARNING'
28+
default: "WARNING"
2929

3030
runs:
3131
using: composite
3232
steps:
33-
- name: Setup python
34-
uses: actions/setup-python@v2
33+
- name: Set up Python 3.10
34+
uses: actions/setup-python@v4
3535
with:
36-
python-version: '3.9'
36+
python-version: "3.10"
3737
- name: Setup cache
38-
id: cached-mecha-venv
39-
uses: actions/cache@v2
38+
id: cache-mecha-venv
39+
uses: actions/cache@v3
4040
with:
4141
path: ~/.mecha_venv
4242
key: mecha-venv-${{ runner.os }}-${{ inputs.version }}
4343
- name: Run mecha
4444
env:
45-
CACHE_HIT: ${{ steps.cached-mecha-venv.outputs.cache-hit }}
45+
CACHE_HIT: ${{ steps.cache-mecha-venv.outputs.cache-hit }}
4646
MECHA_VERSION: ${{ inputs.version }}
4747
MECHA_SOURCE: ${{ inputs.source }}
4848
MECHA_MINECRAFT: ${{ inputs.minecraft }}

0 commit comments

Comments
 (0)