-
Notifications
You must be signed in to change notification settings - Fork 2
/
action.yml
84 lines (84 loc) · 2.53 KB
/
action.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
name: Setup TeXLive Action
description: A GitHub Action to set up TeX Live.
author: '@teatimeguest'
inputs:
cache:
description: >-
Enable caching for `TEXDIR`.
default: 'true'
required: false
package-file:
description: >-
Glob patterns for specifying files
containing the names of TeX packages to be installed.
The file format should be the same as the syntax for the `packages` input.
The `DEPENDS.txt` format is also supported.
default: ''
required: false
packages:
description: >-
Specify the names of TeX packages to install, separated by whitespaces.
Schemes and collections are also acceptable.
Everything after `#` will be treated as a comment.
default: ''
required: false
prefix:
description: >-
TeX Live installation prefix.
This has the same effect as `TEXLIVE_INSTALL_PREFIX`.
Defaults to `$RUNNER_TEMP/setup-texlive-action`.
required: false
repository:
description: >-
Specify the package repository to be used as the main repository.
Currently only http(s) repositories are supported.
required: false
texdir:
description: >-
TeX Live system installation directory.
This has the same effect as the installer's `-texdir` option and
takes precedence
over the `prefix` input and related environment variables.
required: false
tlcontrib:
description: >-
Set up TLContrib as an additional TeX package repository.
This input will be ignored for older versions.
default: 'false'
required: false
update-all-packages:
description: >-
Update all TeX packages when cache restored.
The default is `false` and the action will update only `tlmgr`.
default: 'false'
required: false
version:
description: >-
TeX Live version to install.
Supported values are `2008` to `2024`, and `latest`.
required: false
outputs:
cache-hit:
description: >-
A boolean value to indicate if an exact match cache was found.
cache-restored:
description: >-
A boolean value to indicate if a cache was found.
version:
description: The installed TeX Live version.
runs:
using: node20
main: dist/index.mjs
post: dist/index.mjs
# - Use `fromJSON` since there are no array literals.
# - Use `toJSON` for strict value comparison.
post-if: >-
contains(
fromJSON('["null", "\"0\""]'),
toJSON(env.SETUP_TEXLIVE_ACTION_NO_CACHE_ON_FAILURE)
)
&& !cancelled()
|| success()
branding:
color: green
icon: type