You've already forked csv_to_excel
52 lines
1.4 KiB
YAML
52 lines
1.4 KiB
YAML
name: "CSV to Excel"
|
|
description: >
|
|
Transform a CSV file into an Excel file
|
|
|
|
Works with any csv file.
|
|
Header configuration is done via a YAML file that maps cell names, values, and formatting
|
|
in a simple and intuitive way.
|
|
|
|
inputs:
|
|
source_path:
|
|
description: >
|
|
Path to the source file from the root of the repo. This should be:
|
|
|
|
- A .csv file for generic CSV projects.
|
|
required: true
|
|
output_file_name:
|
|
description: "Name of the output file"
|
|
required: true
|
|
default: "out_file.xlsx"
|
|
start_cellname:
|
|
description: >
|
|
The cell name to start the output file at. This is useful for
|
|
appending to an existing file.
|
|
required: false
|
|
default: "A1"
|
|
log_level:
|
|
description: >
|
|
The level at which to log. Use "DEBUG" to get more information, such as
|
|
about which file was used to match which device sheet.
|
|
required: false
|
|
default: INFO
|
|
auth_token:
|
|
description: >
|
|
The AllSpice Hub Auth token to use. If not provided, the autogenerated
|
|
token for the run is used.
|
|
required: false
|
|
default: ${{ github.token }}
|
|
runs:
|
|
using: "docker"
|
|
image: "Dockerfile"
|
|
args:
|
|
- "--start_cellname"
|
|
- ${{ inputs.start_cellname }}
|
|
- "--output_file"
|
|
- "${{ github.workspace}}/${{ inputs.output_file_name }}"
|
|
- "--log-level"
|
|
- ${{ inputs.log_level }}
|
|
- --source_path
|
|
- ${{ inputs.source_path }}
|
|
env:
|
|
ALLSPICE_AUTH_TOKEN: ${{ inputs.auth_token }}
|