Skip to content

Commit

Permalink
feat: support TeXLive 2024
Browse files Browse the repository at this point in the history
  • Loading branch information
xu-cheng committed Mar 16, 2024
1 parent 699be44 commit c41b2ac
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
strategy:
fail-fast: false
matrix:
texlive_version: [2020, 2021, 2022, latest]
texlive_version: [2022, 2023, latest]
runs-on: ubuntu-latest
steps:
- name: Set up Git repository
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ Each input is provided as a key inside the `with` section of the action.
* `texlive_version`

The version of TeXLive to be used. Supported inputs include 2020, 2021, 2022, 2023, and latest. By default the latest TeXLive is used. This input cannot co-exist with `docker_image` input. An example to use this input:
The version of TeXLive to be used. Supported inputs include 2020, 2021, 2022, 2023, 2024, and latest. By default the latest TeXLive is used. This input cannot co-exist with `docker_image` input. An example to use this input:
```yaml
- uses: xu-cheng/latex-action@v3
with:
Expand Down
7 changes: 5 additions & 2 deletions action.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,12 @@ fi

if [[ -z "$INPUT_DOCKER_IMAGE" ]]; then
case "$INPUT_TEXLIVE_VERSION" in
"" | "latest" | "2023")
"" | "latest" | "2024")
image_version="latest"
;;
"2023")
image_version="20240301"
;;
"2022")
image_version="20230301"
;;
Expand All @@ -39,7 +42,7 @@ if [[ -z "$INPUT_DOCKER_IMAGE" ]]; then
image_version="20210301"
;;
*)
error "TeX Live version $INPUT_TEXLIVE_VERSION is not supported. The currently supported versions are 2020-2023 or latest."
error "TeX Live version $INPUT_TEXLIVE_VERSION is not supported. The currently supported versions are 2020-2024 or latest."
;;
esac
INPUT_DOCKER_IMAGE="ghcr.io/xu-cheng/texlive-full:$image_version"
Expand Down

0 comments on commit c41b2ac

Please sign in to comment.