Skip to content

Commit 3992b4c

Browse files
authored
docs: explain the v2.24 ignore and database path changes (#515)
1 parent 774040a commit 3992b4c

1 file changed

Lines changed: 15 additions & 1 deletion

File tree

‎action.yml‎

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,16 @@ inputs:
9696
a submodule's path (if desired) but not hidden directories.
9797
- **As of v2.12**, glob patterns are supported here.
9898
All asterisk characters (`*`) were previously literal.
99+
- **As of v2.24**, a path only matches relative to the [`repo-root`](#repo-root).
100+
For example, `build` ignores `build/` but not `src/build/`.
101+
Use `**/` to ignore a folder at any depth.
102+
103+
!!! example
104+
105+
``` yaml
106+
# ignore every folder named build, and the .github folder
107+
ignore: '**/build|.github'
108+
```
99109
required: false
100110
default: '.github'
101111
ignore-tidy:
@@ -153,7 +163,11 @@ inputs:
153163
required: false
154164
default: 'true'
155165
database:
156-
description: The directory containing compilation database (like compile_commands.json) file.
166+
description: |
167+
The directory containing compilation database (like compile_commands.json) file.
168+
169+
**As of v2.24**, a relative path is relative to the runner's `GITHUB_WORKSPACE`,
170+
not to the [`repo-root`](#repo-root).
157171
required: false
158172
default: ""
159173
extra-args:

0 commit comments

Comments
 (0)