Skip to content

Commit

Permalink
Support data_file
Browse files Browse the repository at this point in the history
This commit adds support for a data_file argument
to the action. It also fixes a bug where the Subprocess
exit code wouldn't be used by the GitHub action.
  • Loading branch information
alathon committed Apr 14, 2020
1 parent 0b5c5a9 commit 4ad2d2d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@ inputs:
required: false
default: false
variables:
required: true
required: false
data_file:
required: false
runs:
using: 'docker'
image: 'Dockerfile'
Expand Down
4 changes: 3 additions & 1 deletion entrypoint.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,6 @@

params.extend(['-o', os.environ['INPUT_OUTPUT_FILE']])

subprocess.run(['jinja2'] + params)
params.extend([os.environ.get('INPUT_DATA_FILE','')])

subprocess.run(['jinja2'] + params, check = True)

0 comments on commit 4ad2d2d

Please sign in to comment.