Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,9 @@ runs:
chmod ugoa+rw -R '${{ github.workspace }}' '${{ github.action_path }}'

# Write out customizations via env vars to avoid heredoc injection
printf '%s' "$INPUT_CSS" > '${{ github.action_path }}/custom.css'
printf '%s' "$INPUT_CUSTOMIZATIONS" > '${{ github.action_path }}/custom.yaml'
# Only create files when inputs are non-empty; empty files cause addStyleTag/readYamlFile to fail
[ -n "$INPUT_CSS" ] && printf '%s' "$INPUT_CSS" > '${{ github.action_path }}/custom.css' || true
[ -n "$INPUT_CUSTOMIZATIONS" ] && printf '%s' "$INPUT_CUSTOMIZATIONS" > '${{ github.action_path }}/custom.yaml' || true

# Prepare inputs that should be passed to the docker container.
cat <<'__EOF__' >docker.env
Expand Down
Loading