Skip to content

Commit

Permalink
stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
Rob Barry committed Oct 17, 2022
1 parent ed69bc0 commit b946fb2
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
6 changes: 6 additions & 0 deletions action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,15 @@ inputs:
description: "(WARNING: Advanced Configuration) Only convert CSV files which have a companion JSON configuration file into CSV-Ws."
default: false
required: false
debug:
description: "(WARNING: Advanced Configuration) Whether to output debug statements in order to help diagnose a fault or unexpected behaviour."
default: false
required: false

runs:
using: composite
env:
DEBUG: ${{ fromJSON(inputs.debug) == true }}
steps:
- name: Set up Python 3.9
uses: actions/setup-python@v2
Expand Down
8 changes: 8 additions & 0 deletions build-and-inspect-files.sh
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,14 @@ function build_and_inspect_csvw {

local out_dir="$RUNNER_TEMP/$(get_out_path "$csv_file")"

if [[ -d "$out_dir" ]]
then
# Sometimes the names of output files changes given different configurations,
# so we should delete the existing artifacts and regenerate them as a whole
# so that we don't end up with orphaned and confusing old files sitting around.
rm -rf "$out_dir"
fi

echo "---Building CSV-W for $csv_file"
echo "Building CSV-W"
if [[ -f $json_file ]]; then
Expand Down

0 comments on commit b946fb2

Please sign in to comment.