Skip to content

Commit

Permalink
chore: remove deprecated input extra_packages
Browse files Browse the repository at this point in the history
  • Loading branch information
xu-cheng committed Aug 28, 2023
1 parent 33306cd commit 868bee6
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 17 deletions.
3 changes: 0 additions & 3 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@ inputs:
args:
description: Extra arguments to be passed to the LaTeX engine
default: "-pdf -file-line-error -halt-on-error -interaction=nonstopmode"
extra_packages:
description: "[Deprecated] Install extra packages by tlmgr"
extra_system_packages:
description: Install extra packages by apk
extra_fonts:
Expand Down Expand Up @@ -52,7 +50,6 @@ runs:
"${{ inputs.continue_on_error }}" \
"${{ inputs.compiler }}" \
"${{ inputs.args }}" \
"${{ inputs.extra_packages }}" \
"${{ inputs.extra_system_packages }}" \
"${{ inputs.extra_fonts }}" \
"${{ inputs.pre_compile }}" \
Expand Down
23 changes: 9 additions & 14 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,13 @@ work_in_root_file_dir="${3}"
continue_on_error="${4}"
compiler="${5}"
args="${6}"
extra_packages="${7}"
extra_system_packages="${8}"
extra_fonts="${9}"
pre_compile="${10}"
post_compile="${11}"
latexmk_shell_escape="${12}"
latexmk_use_lualatex="${13}"
latexmk_use_xelatex="${14}"
extra_system_packages="${7}"
extra_fonts="${8}"
pre_compile="${9}"
post_compile="${10}"
latexmk_shell_escape="${11}"
latexmk_use_lualatex="${12}"
latexmk_use_xelatex="${13}"

# install git on old images
if ! command -v git &>/dev/null; then
Expand All @@ -53,7 +52,7 @@ fi
expanded_root_file=()
for pattern in "${root_file[@]}"; do
# shellcheck disable=SC2206
expanded=( $pattern )
expanded=($pattern)
expanded_root_file+=("${expanded[@]}")
done
root_file=("${expanded_root_file[@]}")
Expand Down Expand Up @@ -122,7 +121,7 @@ if [[ -n "$extra_fonts" ]]; then
expanded_extra_fonts=()
for pattern in "${extra_fonts[@]}"; do
# shellcheck disable=SC2206
expanded=( $pattern )
expanded=($pattern)
expanded_extra_fonts+=("${expanded[@]}")
done
extra_fonts=("${expanded_extra_fonts[@]}")
Expand All @@ -141,10 +140,6 @@ if [[ -n "$extra_fonts" ]]; then
fc-cache -fv
fi

if [[ -n "$extra_packages" ]]; then
warn "Input 'extra_packages' is deprecated. We now build LaTeX document with full TeXLive installed."
fi

if [[ -n "$pre_compile" ]]; then
info "Run pre compile commands"
eval "$pre_compile"
Expand Down

0 comments on commit 868bee6

Please sign in to comment.