-
Notifications
You must be signed in to change notification settings - Fork 4
feat:自動でvalidationするCIを追加 #1203
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,46 @@ | ||
| name: Validate Renovate Config | ||
|
|
||
| on: | ||
| pull_request: | ||
| paths: | ||
| - "renovate-bot.js" | ||
| - "renovate/**" | ||
|
|
||
| jobs: | ||
| validate: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
Kentaro1043 marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| - name: Validate renovate-bot.js | ||
| if: ${{ exists('renovate-bot.js') }} | ||
Kentaro1043 marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| run: | | ||
| npx --yes renovate-config-validator renovate-bot.js | ||
|
||
|
|
||
| - name: Validate renovate directory configs | ||
| run: | | ||
| find renovate -type f -name '*.json' -exec npx --yes renovate-config-validator {} \; | ||
|
|
||
| - name: Post success comment on PR | ||
| if: success() | ||
| uses: actions/github-script@v7 | ||
| with: | ||
| script: | | ||
| github.rest.issues.createComment({ | ||
| issue_number: context.issue.number, | ||
| owner: context.repo.owner, | ||
| repo: context.repo.repo, | ||
| body: 'Renovate設定ファイルのバリデーションに成功しました :white_check_mark:' | ||
| }) | ||
|
|
||
| - name: Post failure comment on PR | ||
| if: failure() | ||
| uses: actions/github-script@v7 | ||
| with: | ||
| script: | | ||
| github.rest.issues.createComment({ | ||
| issue_number: context.issue.number, | ||
| owner: context.repo.owner, | ||
| repo: context.repo.repo, | ||
| body: 'Renovate設定ファイルのバリデーションに失敗しました :x: 詳細はActionsのログを確認してください。' | ||
| }) | ||
github-advanced-security[bot] marked this conversation as resolved.
Fixed
Show fixed
Hide fixed
|
||
Uh oh!
There was an error while loading. Please reload this page.