Skip to content

Commit 52e33aa

Browse files
committed
fix(ci): Use Dependabot to update flake.lock and GitHub Actions
1 parent fb59f60 commit 52e33aa

3 files changed

Lines changed: 44 additions & 28 deletions

File tree

.github/dependabot.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: github-actions
4+
directory: /
5+
schedule:
6+
interval: weekly
7+
day: friday
8+
cooldown:
9+
default-days: 14
10+
commit-message:
11+
prefix: chore
12+
include: scope
13+
groups:
14+
actions-minor-patch:
15+
update-types: [minor, patch]
16+
- package-ecosystem: nix
17+
directory: /
18+
schedule:
19+
interval: weekly
20+
day: friday
21+
cooldown:
22+
default-days: 14
23+
commit-message:
24+
prefix: chore
25+
include: scope
26+
groups:
27+
flake-inputs:
28+
patterns: ["*"]

.github/workflows/check.yml

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,16 @@ on:
44
branches: [master, v3]
55
pull_request:
66
jobs:
7-
check-lua:
7+
checks:
88
name: Run Checks (${{ matrix.neovim-version }})
99
runs-on: ubuntu-latest
1010
strategy:
1111
matrix:
1212
neovim-version: [ci, ci-nightly]
1313
fail-fast: false
1414
steps:
15-
- name: Checkout
16-
uses: actions/checkout@v4
17-
- name: Install Nix
18-
uses: cachix/install-nix-action@v27
15+
- uses: actions/checkout@v4
16+
- uses: cachix/install-nix-action@v27
1917
with:
2018
nix_path: nixpkgs=channel:nixos-unstable
2119
- name: Setup Cachix
@@ -29,3 +27,16 @@ jobs:
2927
run: nix develop .#${{ matrix.neovim-version }} --command just typecheck
3028
- name: Run tests
3129
run: nix develop .#${{ matrix.neovim-version }} --command just test
30+
dependabot-auto-merge:
31+
runs-on: ubuntu-latest
32+
permissions:
33+
pull-requests: write
34+
contents: write
35+
if: ${{ github.event.pull_request.user.login == 'dependabot[bot]' && github.event_name == 'pull_request' }}
36+
steps:
37+
- run: |
38+
gh pr review --approve "$PR_URL"
39+
gh pr merge --squash --auto "$PR_URL"
40+
env:
41+
PR_URL: ${{ github.event.pull_request.html_url }}
42+
GITHUB_TOKEN: ${{ secrets.GH_PAT_TOKEN }}

.github/workflows/update-flake.yml

Lines changed: 0 additions & 23 deletions
This file was deleted.

0 commit comments

Comments
 (0)