From 90875ebaaffdf348a20f6621360c494060acbbde Mon Sep 17 00:00:00 2001 From: Denis Smet Date: Mon, 11 Mar 2024 16:24:45 +0400 Subject: [PATCH 1/2] GitHub Actions Runner --- action.yml | 44 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 action.yml diff --git a/action.yml b/action.yml new file mode 100644 index 00000000..7c7394d2 --- /dev/null +++ b/action.yml @@ -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 ' + +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.mute-errors }} + - '-vvv' From 841f7ca3ec0fb2ec38f3367ca9d2a3d66d1cd3fa Mon Sep 17 00:00:00 2001 From: Denis Smet Date: Mon, 11 Mar 2024 16:25:12 +0400 Subject: [PATCH 2/2] GitHub Actions Runner --- action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/action.yml b/action.yml index 7c7394d2..c278afc7 100644 --- a/action.yml +++ b/action.yml @@ -40,5 +40,5 @@ runs: - '--schema' - ${{ inputs.schema }} - '--output' - - ${{ inputs.mute-errors }} + - ${{ inputs.output }} - '-vvv'