Skip to content

Commit 0558ff2

Browse files
authored
Merge pull request #274 from rust-osdev/ci
ci: dependabot auto-merge
2 parents e876521 + 812748e commit 0558ff2

File tree

2 files changed

+27
-1
lines changed

2 files changed

+27
-1
lines changed
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# We auto-merge all dependabot updates as soon as the CI are met.
2+
#
3+
# More info: https://docs.github.com/en/code-security/dependabot/working-with-dependabot/automating-dependabot-with-github-actions
4+
5+
name: Dependabot PR auto-merge
6+
on: pull_request
7+
8+
permissions:
9+
contents: write
10+
pull-requests: write
11+
12+
jobs:
13+
dependabot:
14+
runs-on: ubuntu-latest
15+
if: github.event.pull_request.user.login == 'dependabot[bot]' && github.repository == 'rust-osdev/multiboot2'
16+
steps:
17+
- name: Approve
18+
run: gh pr review --approve "$PR_URL"
19+
env:
20+
PR_URL: ${{github.event.pull_request.html_url}}
21+
GH_TOKEN: ${{secrets.GITHUB_TOKEN}}
22+
- name: Enable auto-merge
23+
run: gh pr merge --auto --merge "$PR_URL"
24+
env:
25+
PR_URL: ${{github.event.pull_request.html_url}}
26+
GH_TOKEN: ${{secrets.GITHUB_TOKEN}}

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Rusty Wrappers for Multiboot2
1+
# Rusty Wrappers for Multiboot 2
22

33
## Repository Overview
44

0 commit comments

Comments
 (0)