Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GitHub Actions runner added #6

Merged
merged 2 commits into from
Mar 11, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 44 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
#
# JBZoo Toolbox - Csv-Blueprint.
#
# This file is part of the JBZoo Toolbox project.
# For the full copyright and license information, please view the LICENSE
# file that was distributed with this source code.
#
# @license MIT
# @copyright Copyright (C) JBZoo.com, All rights reserved.
# @see https://github.com/JBZoo/Csv-Blueprint
#

name: 'CSV Validator'
description: 'Strict and flexible schema-based CSV file validation with the ability to report as GitHub Annotations in your PRs.'
author: 'Denis Smetannikov <admin@jbzoo.com>'

branding:
icon: 'file-text'
color: 'green'

inputs:
csv:
description: 'CSV filepath to validate.'
required: true
schema:
description: 'Schema rule filepath. File can be a Yml or JSON. See examples in the repository.'
required: true
output:
description: 'Report output format. Available options: text, table, github, gitlab, teamcity, junit'
default: github
required: true

runs:
using: 'docker'
image: 'docker://jbzoo/csv-blueprint'
args:
- validate:csv
- '--csv'
- ${{ inputs.csv }}
- '--schema'
- ${{ inputs.schema }}
- '--output'
- ${{ inputs.output }}
- '-vvv'
Loading