Skip to content

Commit 3b9e8a6

Browse files
authored
Rebuild on dependabot updates (#96)
To allow dependabot to upgrade deps, run an action to rebuild after the package updates. Based on dependabot/dependabot-core#5962 (comment)
1 parent c31d515 commit 3b9e8a6

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

.github/workflows/dependabot.yaml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Dependabot Update
2+
on:
3+
pull_request:
4+
types: [opened, synchronize]
5+
permissions:
6+
contents: write
7+
pull-requests: read
8+
jobs:
9+
build:
10+
if: ${{ github.actor == 'dependabot[bot]' }}
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v3
14+
with:
15+
ref: ${{ github.event.pull_request.head.sha }}
16+
- name: rebuild
17+
run: |
18+
git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/$GITHUB_REPOSITORY
19+
make build
20+
git add -A
21+
git commit -m "Build"
22+
git push -u origin HEAD:${{ github.event.pull_request.head.ref }}

0 commit comments

Comments
 (0)