Skip to content

Bump validator to 0.18.1 and fixed issues that it brought #948

Bump validator to 0.18.1 and fixed issues that it brought

Bump validator to 0.18.1 and fixed issues that it brought #948

Workflow file for this run

# 🐻‍❄️📦 charted-server: Free, open source, and reliable Helm Chart registry made in Rust
# Copyright 2022-2024 Noelware, LLC. <team@noelware.org>
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
name: Generate OpenAPI document
on:
workflow_dispatch: {}
push:
branches:
- main
paths-ignore:
- '.github/**'
- '.coder/**'
- '.devcontainer/**'
- '.vscode/**'
- 'docs/**'
- 'scripts/**'
- '.*ignore'
- '**.md'
- renovate.json
- LICENSE
jobs:
openapi:
name: Generate
runs-on: ubuntu-latest
if: ${{github.repository == 'charted-dev/charted'}}
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
submodules: recursive
- name: Setup Rust toolchain
uses: dtolnay/rust-toolchain@master
with:
toolchain: stable
- name: Setup Rust cache
uses: Swatinem/rust-cache@v2
- name: Setup Bun
uses: oven-sh/setup-bun@v1
- name: Install `protoc`
uses: Noelware/setup-protoc@1.2.0
with:
repo-token: ${{github.token}}
- name: Generate OpenAPI document
run: |
cargo run --release --locked -- openapi ${GITHUB_WORKSPACE}/assets/openapi.json
bunx prettier --write --config ${GITHUB_WORKSPACE}/.prettierrc.json ./assets/openapi.json
- name: Commit changes (if we can)
uses: EndBug/add-and-commit@v9
with:
author_name: Noel[bot]
default_author: user_info
author_email: noelbot@users.noreply.github.com
message: '[skip ci] :sparkles: Update OpenAPI spec'
push: true