Skip to content

Commit

Permalink
Pass output-folder as an environment variable
Browse files Browse the repository at this point in the history
  • Loading branch information
kadykov committed Nov 13, 2024
1 parent d495ec7 commit 3c98ddd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,5 @@ runs:
using: 'docker'
image: 'Dockerfile'
entrypoint: './entrypoint.sh'
env:
OUTPUT_FOLDER: ${{ inputs.output-folder }}
2 changes: 1 addition & 1 deletion entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ set -e
just build

# Use the correct environment variable for the input
output_folder="${INPUT_OUTPUT-FOLDER}"
output_folder="${OUTPUT_FOLDER}"

# Ensure the output folder exists
mkdir -p "$output_folder"
Expand Down

0 comments on commit 3c98ddd

Please sign in to comment.