-
Notifications
You must be signed in to change notification settings - Fork 5
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
Dependabot のプルリクエストを自動マージする GitHub Actions のワークフローを実装 #23
base: master
Are you sure you want to change the base?
Changes from 8 commits
f4f627a
4a46ccc
4414766
6916e2d
1d06415
8b62c0b
8f0ab57
e916320
d89bfa7
1ff582a
93a2d7a
d6d04fa
3216792
0c5c94a
8e4c09d
8bcc538
abde202
7c25ddb
773da39
d14c4ea
9c88d95
b5b54c3
6ea3200
e43b621
67f4623
42692ac
061dd96
1736fe6
a81a5ed
402bbf2
6ec63b7
5aa6ee6
2aa31d7
093e40b
d64f4d4
ccc7b06
72e0f62
f3b1287
929065a
5573b57
8c1c08a
86a4939
0eba283
e6a6359
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 |
---|---|---|
@@ -1,6 +1,10 @@ | ||
version: 2 | ||
updates: | ||
- package-ecosystem: "gitsubmodule" | ||
- package-ecosystem: gitsubmodule | ||
directory: "/" | ||
schedule: | ||
interval: "monthly" | ||
interval: daily | ||
- package-ecosystem: github-actions | ||
directory: "/.github/workflows/" | ||
schedule: | ||
interval: daily |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
|
||
name: "Merge Dependabot PR" | ||
|
||
on: | ||
pull_request: | ||
types: [ opened, reopened ] | ||
branches: [ master ] | ||
|
||
jobs: | ||
merge: | ||
if: github.event.pull_request.user.login == 'dependabot[bot]' | ||
permissions: | ||
contents: write | ||
Comment on lines
+12
to
+13
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: KeisukeYamashita/auto-pull-request-merge@v1 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. TODO: 安全性を確かめる。 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. https://github.com/KeisukeYamashita/auto-pull-request-merge からフォークして管理を行うという選択肢もあります。 |
||
with: | ||
pullRequestNumber: ${{ github.event.pull_request.number }} | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
labels: "dependencies" |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
_site/ | ||
Gemfile.lock |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
gem "github-pages", group: :jekyll_plugins |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
@echo off | ||
wsl bundle exec jekyll b |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TODO: 実行頻度を見直す。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
自動マージを行うのであれば、Dependabot を毎日動かしても問題ないでしょう。