chore(deps): bump maven from 3-eclipse-temurin-17-alpine to 3-eclipse-temurin-23-alpine #162
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "Validate OpenAPI definition" | |
on: | |
workflow_dispatch: # Trigger manually | |
workflow_call: | |
inputs: | |
checkout-tag: | |
description: 'Whether to check out a tag' | |
required: false | |
type: boolean | |
default: false | |
ref-to-checkout: | |
description: 'Ref of branch/tag from which to execute workflow' | |
required: true | |
type: string | |
pull_request: | |
push: | |
branches: | |
- main | |
tags: | |
- '**' | |
jobs: | |
determine-ref: | |
runs-on: ubuntu-latest | |
outputs: | |
ref: ${{ steps.determine-ref.outputs.ref }} | |
steps: | |
- name: Determine ref to check out | |
id: determine-ref | |
run: | | |
if [[ "${{ inputs.checkout-tag }}" == "false" ]]; then | |
echo "ref=${{ github.ref }}" >> "$GITHUB_OUTPUT" | |
else | |
echo "ref=${{ inputs.ref-to-checkout }}" >> "$GITHUB_OUTPUT" | |
fi | |
test_swagger_editor_validator_remote: | |
runs-on: ubuntu-latest | |
needs: determine-ref | |
name: Swagger Editor Validator Remote | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-tags: 'true' | |
ref: ${{ needs.determine-ref.outputs.ref }} | |
- name: Validate OpenAPI definition | |
uses: char0n/swagger-editor-validate@v1 | |
with: | |
definition-file: docs/src/api/irs-api.yaml |