-
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: support multiple files * fix: set IFS * fix: use while loop * ci: fix multiple output * docs: update README
- Loading branch information
1 parent
72f92fe
commit 36a15b8
Showing
4 changed files
with
69 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -43,6 +43,36 @@ By default, the following files are validated. | |
* renovate.json5 | ||
* .renovaterc | ||
|
||
If you want to validate multiple files, you can pass multile lines. | ||
Leading spaces on each line are removed. | ||
|
||
```yaml | ||
with: | ||
config_file_path: | | ||
default.json | ||
foo.json | ||
``` | ||
You can pass `config_file_path` through output command. | ||
|
||
```yaml | ||
- id: files | ||
run: | | ||
set -euo pipefail | ||
files=$(git ls-files | grep renovate.json) | ||
# https://stackoverflow.com/a/74232400 | ||
EOF=$(dd if=/dev/urandom bs=15 count=1 status=none | base64) | ||
{ | ||
echo "files<<$EOF" | ||
echo "$files" | ||
echo "$EOF" | ||
} >> "$GITHUB_OUTPUT" | ||
- name: Pass files through output | ||
uses: suzuki-shunsuke/[email protected] | ||
with: | ||
config_file_path: ${{ steps.files.outputs.files }} | ||
``` | ||
|
||
## Output | ||
|
||
Nothing. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"extends": [ | ||
"config:best-practices" | ||
] | ||
} |