Skip to content

Commit d58e8d6

Browse files
authored
feat:自動でvalidationするCIを追加 (#1203)
* feat:自動でvalidationするCIを追加 * permissions追加やpaths変更などをした * hashfilesへ変更とfindするディレクトリ変更 * path修正とworkflow_dispatch追加 * setup-nodeとpackage renovate追加
1 parent 2437e46 commit d58e8d6

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Validate Renovate Config
2+
3+
on:
4+
pull_request:
5+
paths:
6+
- ".github/renovate-bot.js"
7+
- ".github/renovate/**"
8+
workflow_dispatch:
9+
10+
jobs:
11+
validate:
12+
permissions:
13+
contents: read
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@v5
17+
- uses: actions/setup-node@v6
18+
with:
19+
node-version: '24'
20+
21+
- name: Validate renovate-bot.js
22+
if: ${{ hashFiles('.github/renovate-bot.js') != '' }}
23+
run: |
24+
npx --yes --package renovate -- renovate-config-validator .github/renovate-bot.js
25+
26+
- name: Validate renovate directory configs
27+
run: |
28+
find .github/renovate -type f -name '*.json' -exec npx --yes renovate-config-validator {} \;

0 commit comments

Comments
 (0)