From 4a741a83551c86a5f7033da1045483435677daa1 Mon Sep 17 00:00:00 2001 From: John Ajera <37360952+jajera@users.noreply.github.com> Date: Sat, 20 Jun 2026 11:41:36 +1200 Subject: [PATCH] chore: bump actions versions updates to use latest stable version --- .github/workflows/ci.yml | 6 +++--- .github/workflows/publish-github-action.yml | 4 ++-- .github/workflows/validate-schema-test.yml | 6 +++--- README.md | 14 +++++++------- action.yml | 9 +++++---- pyproject.toml | 2 +- 6 files changed, 21 insertions(+), 20 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4bd7b44..0bbe391 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -13,15 +13,15 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: ['3.9', '3.10', '3.11', '3.12', '3.13'] + python-version: ['3.9', '3.10', '3.11', '3.12', '3.13', '3.14'] fail-fast: false steps: - name: Checkout code - uses: actions/checkout@v4 + uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 #v7.0.0 - name: Set up Python - uses: actions/setup-python@v4 + uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 #v6.2.0 with: python-version: ${{ matrix.python-version }} diff --git a/.github/workflows/publish-github-action.yml b/.github/workflows/publish-github-action.yml index eebb8d7..bde26f0 100644 --- a/.github/workflows/publish-github-action.yml +++ b/.github/workflows/publish-github-action.yml @@ -14,7 +14,7 @@ jobs: steps: - name: Checkout Code - uses: actions/checkout@v4 + uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 #v7.0.0 - name: Validate Action Metadata run: | @@ -37,7 +37,7 @@ jobs: echo "Tag found: $TAG" - name: Publish Release - uses: elgohr/Github-Release-Action@v5 + uses: elgohr/Github-Release-Action@c5ea99036abb741a89f8bf1f2cd7fba845e3313a #v5 env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: diff --git a/.github/workflows/validate-schema-test.yml b/.github/workflows/validate-schema-test.yml index 0ef6f66..5e9cb7c 100644 --- a/.github/workflows/validate-schema-test.yml +++ b/.github/workflows/validate-schema-test.yml @@ -13,17 +13,17 @@ jobs: test-action: runs-on: ubuntu-latest env: - PYTHON_VERSION: "3.13" + PYTHON_VERSION: "3.14" SCHEMA_FILE: "https://raw.githubusercontent.com/devcontainers/spec/main/schemas/devContainer.schema.json" DATA_FILE: ".devcontainer/devcontainer.json" VERBOSE: "false" steps: - name: Checkout Code - uses: actions/checkout@v4 + uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 #v7.0.0 - name: Set Up Python - uses: actions/setup-python@v4 + uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 #v6.2.0 with: python-version: ${{ env.PYTHON_VERSION }} diff --git a/README.md b/README.md index 4e00978..f98e401 100644 --- a/README.md +++ b/README.md @@ -8,12 +8,12 @@ This GitHub Action validates a devcontainer.json file against a schema by first **Note**: The default `schema` has been tested and verified to work. If you customize the `schema`, ensure that it is a valid JSON schema to avoid validation errors. -| Name | Description | Required | Default | -|----------------|------------------------------------------|----------|-------------------------------------------------------------------------| -| `schema` | Path or URL to the JSON schema. | No | `https://raw.githubusercontent.com/devcontainers/spec/main/schemas/devContainer.schema.json` | -| `data` | Path or URL to the JSON data. | No | `devcontainer/devcontainer.json` | -| `verbose` | Enable verbose output (true/false). | No | `false` | -| `python-version` | Python version to use. Allowed versions are: 3.9, 3.10, 3.11, 3.12, 3.13. | No | `3.13` | +| Name | Description | Required | Default | +| - | - | - | - | +| `schema` | Path or URL to the JSON schema. | No | `https://raw.githubusercontent.com/devcontainers/spec/main/schemas/devContainer.schema.json` | +| `data` | Path or URL to the JSON data. | No | `devcontainer/devcontainer.json` | +| `verbose` | Enable verbose output (true/false). | No | `false` | +| `python-version` | Python version to use. Allowed versions are: 3.9, 3.10, 3.11, 3.12, 3.13, 3.14. | No | `3.14` | ## Usage @@ -23,7 +23,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout Code - uses: actions/checkout@v4 + uses: actions/checkout@v7 - name: Validate Devcontainer Schema uses: actionsforge/actions-validate-devschema@v1 diff --git a/action.yml b/action.yml index 17a3c61..72cd326 100644 --- a/action.yml +++ b/action.yml @@ -23,8 +23,9 @@ inputs: - 3.11 - 3.12 - 3.13 + - 3.14 required: false - default: "3.13" + default: "3.14" runs: using: "composite" @@ -32,12 +33,12 @@ runs: - name: Validate Python Version run: | echo "::group::Validate Python Version" - ALLOWED_VERSIONS=("3.9" "3.10" "3.11" "3.12" "3.13") + ALLOWED_VERSIONS=("3.9" "3.10" "3.11" "3.12" "3.13" "3.14") PYTHON_VERSION="${{ inputs.python-version }}" # Use default if input is not set if [ -z "$PYTHON_VERSION" ]; then - PYTHON_VERSION="3.13" + PYTHON_VERSION="3.14" fi # Validate against allowed versions @@ -51,7 +52,7 @@ runs: shell: bash - name: Set Up Python - uses: actions/setup-python@v4 + uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 #v6.2.0 with: python-version: "${{ inputs.python-version }}" diff --git a/pyproject.toml b/pyproject.toml index 2847a8e..af87c72 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "poetry.masonry.api" [tool.poetry] name = "validate-devschema" -version = "0.1.0" +version = "0.1.1" description = "A lightweight DevContainer JSON Schema validator." authors = ["John Ajera"] license = "MIT"