From 44783035bfa04a54d24b55eaebc435eb3f8ad0d2 Mon Sep 17 00:00:00 2001 From: Valentin Berlier Date: Sat, 3 Dec 2022 14:16:16 +0100 Subject: [PATCH] Update to 1.19 and more recent tags for setup-python and cache actions --- README.md | 2 +- action.yml | 18 +++++++++--------- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index 3cb230e..dded885 100644 --- a/README.md +++ b/README.md @@ -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 | diff --git a/action.yml b/action.yml index a29d6a8..8b58e20 100644 --- a/action.yml +++ b/action.yml @@ -10,14 +10,14 @@ 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 @@ -25,24 +25,24 @@ inputs: 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 }}