@@ -54,17 +54,18 @@ lychee arguments can be passed to the action via the `args` parameter.
54
54
55
55
On top of that, the action also supports some additional arguments.
56
56
57
- | Argument | Examples | Description |
58
- | ------------- | ----------------------- | ------------------------------------------------------------------------------- |
59
- | args | `--cache`, `--insecure` | See [lychee's documentation][lychee-args] for all arguments and values |
60
- | debug | `false` | Enable debug output in action (set -x). Helpful for troubleshooting |
61
- | fail | `false` | Fail workflow run on error (i.e. when [lychee exit code][lychee-exit] is not 0) |
62
- | failIfEmpty | `false` | Fail entire pipeline if no links were found |
63
- | format | `markdown`, `json` | Summary output format |
64
- | jobSummary | `false` | Write GitHub job summary (on Markdown output only) |
65
- | lycheeVersion | `v0.15.0`, `nightly` | Overwrite the lychee version to be used |
66
- | output | `lychee/results.md` | Summary output file path |
67
- | token | `""` | Custom GitHub token to use for API calls |
57
+ | Argument | Examples | Description |
58
+ | ---------------- | ----------------------- | --------------------------------------------------------------------------------------- |
59
+ | args | `--cache`, `--insecure` | See [lychee's documentation][lychee-args] for all arguments and values |
60
+ | debug | `false` | Enable debug output in action (set -x). Helpful for troubleshooting |
61
+ | fail | `false` | Fail workflow run on error (i.e. when [lychee exit code][lychee-exit] is not 0) |
62
+ | failIfEmpty | `false` | Fail entire pipeline if no links were found |
63
+ | format | `markdown`, `json` | Summary output format |
64
+ | jobSummary | `false` | Write GitHub job summary (on Markdown output only) |
65
+ | lycheeVersion | `v0.15.0`, `nightly` | Overwrite the lychee version to be used |
66
+ | output | `lychee/results.md` | Summary output file path |
67
+ | token | `""` | Custom GitHub token to use for API calls |
68
+ | workingDirectory | `.`, `path/to/subdir/` | Custom working directory to run lychee in. This affects where `output.md` gets created. |
68
69
69
70
See [action.yml](./action.yml) for a full list of supported arguments and their default values.
70
71
@@ -86,6 +87,9 @@ Here is how to pass the arguments.
86
87
token: ${{ secrets.CUSTOM_TOKEN }}
87
88
# Don't fail action on broken links
88
89
fail: false
90
+ # Run lychee in a different directory.
91
+ # Note: This changes the lychee output directory as well.
92
+ workingDirectory: website/subdir
89
93
` ` `
90
94
91
95
(If you need a token that requires permissions that aren't available in the
@@ -144,6 +148,8 @@ If you need more control over when caches are restored and saved, you can split
144
148
Add a `.lycheeignore` file to the root of your repository to exclude links from
145
149
getting checked. It supports regular expressions. One expression per line.
146
150
151
+ You can also put your `.lycheeignore` into a subdirectory if you set that as the `workingDirectory`.
152
+
147
153
# # Fancy badge
148
154
149
155
Pro tip : You can add a little badge to your repo to show the status of your
0 commit comments