-
-
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.
Merge pull request #1 from suzuki-shunsuke/feat/first-pr
feat: implement basic function
- Loading branch information
Showing
6 changed files
with
126 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
--- | ||
name: actionlint | ||
on: | ||
push: | ||
branches: [main] | ||
paths: | ||
- .github/** | ||
pull_request: | ||
branches: [main] | ||
paths: | ||
- .github/** | ||
jobs: | ||
default: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: aquaproj/[email protected] | ||
with: | ||
aqua_version: v0.8.13 | ||
- run: actionlint |
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,13 @@ | ||
--- | ||
name: test | ||
on: | ||
pull_request: | ||
branches: [main] | ||
push: | ||
branches: [main] | ||
jobs: | ||
default: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: ./ |
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 |
---|---|---|
@@ -1,2 +1,28 @@ | ||
# github-action-renovate-config-validator | ||
|
||
GitHub Actions for renovate-config-validator | ||
|
||
## Input and Output | ||
|
||
Please see [action.yaml](action.yaml) | ||
|
||
## Example | ||
|
||
```yaml | ||
steps: | ||
- uses: suzuki-shunsuke/github-action-renovate-config-validator | ||
``` | ||
You can specify renovate-config-validator version and configuration file path. | ||
```yaml | ||
steps: | ||
- uses: suzuki-shunsuke/github-action-renovate-config-validator | ||
with: | ||
validator_version: "31.15.0" | ||
config_file_path: renovate.json5 | ||
``` | ||
## Liencse | ||
[MIT](LICENSE) |
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,48 @@ | ||
name: renovate-config-validator | ||
description: | | ||
Validate Renovate Configuration with renovate-config-validator. | ||
npx is required. | ||
inputs: | ||
validator_version: | ||
description: 'version of renovate-config-validator. By default, the latest version is used.' | ||
required: false | ||
config_file_path: | ||
description: | | ||
Renovate Configuration file | ||
By default, the following files are validated. | ||
* .github/renovate.json | ||
* .github/renovate.json5 | ||
* .gitlab/renovate.json | ||
* .gitlab/renovate.json5 | ||
* .renovaterc.json | ||
* renovate.json | ||
* renovate.json5 | ||
* .renovaterc | ||
required: false | ||
runs: | ||
using: composite | ||
steps: | ||
- name: Validate Renovate Configuration with renovate-config-validator | ||
run: | | ||
pkg=renovate | ||
if [ -n "${{ inputs.validator_version }}" ]; then | ||
pkg=renovate@${{ inputs.validator_version }} | ||
fi | ||
if [ -n "${{ inputs.config_file_path }}" ]; then | ||
echo "===> RENOVATE_CONFIG_FILE=\"${{ inputs.config_file_path }}\" npx --package \"$pkg\" -c renovate-config-validator" >&2 | ||
RENOVATE_CONFIG_FILE="${{ inputs.config_file_path }}" npx --package "$pkg" -c renovate-config-validator | ||
exit 0 | ||
fi | ||
missing=true | ||
for file in .github/renovate.json .github/renovate.json5 .gitlab/renovate.json .gitlab/renovate.json5 .renovaterc.json renovate.json renovate.json5 .renovaterc; do | ||
if [ -f "$file" ]; then | ||
missing=false | ||
echo "===> RENOVATE_CONFIG_FILE=\"$file\" npx --package \"$pkg\" -c renovate-config-validator" >&2 | ||
RENOVATE_CONFIG_FILE="$file" npx --package "$pkg" -c renovate-config-validator | ||
fi | ||
done | ||
if [ "$missing" = "true" ]; then | ||
echo "===> No configuration file is found" >&2 | ||
fi | ||
shell: bash |
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,9 @@ | ||
--- | ||
# aqua - Declarative CLI Version Manager | ||
# https://aquaproj.github.io/ | ||
registries: | ||
- type: standard | ||
ref: v0.12.4 # renovate: depName=aquaproj/aqua-registry | ||
|
||
packages: | ||
- name: rhysd/[email protected] |
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,10 @@ | ||
{ | ||
"extends": [ | ||
"config:base", | ||
"github>aquaproj/aqua-renovate-config:0.1.8" | ||
], | ||
"automerge": true, | ||
"major": { | ||
"automerge": false | ||
} | ||
} |