Skip to content

Commit dffed6e

Browse files
committed
switch to update-flake-inputs action
1 parent 06ce7f8 commit dffed6e

File tree

3 files changed

+45
-28
lines changed

3 files changed

+45
-28
lines changed

.github/workflows/auto-merge.yaml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
name: Auto Merge Dependency Updates
2+
on:
3+
- pull_request_target
4+
jobs:
5+
auto-merge-dependency-updates:
6+
runs-on: ubuntu-latest
7+
permissions:
8+
contents: write
9+
pull-requests: write
10+
concurrency:
11+
group: "auto-merge:${{ github.head_ref }}"
12+
cancel-in-progress: true
13+
steps:
14+
- uses: Mic92/auto-merge@main
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Update Flake Inputs
2+
on:
3+
schedule:
4+
- cron: "0 2 * * 0"
5+
workflow_dispatch:
6+
jobs:
7+
update-flake-inputs:
8+
runs-on: ubuntu-latest
9+
permissions:
10+
contents: write
11+
pull-requests: write
12+
steps:
13+
- name: Generate GitHub App Token
14+
id: app-token
15+
uses: actions/create-github-app-token@v2
16+
with:
17+
app-id: ${{ secrets.APP_ID }}
18+
private-key: ${{ secrets.APP_PRIVATE_KEY }}
19+
- name: Checkout repository
20+
uses: actions/checkout@v5
21+
with:
22+
token: ${{ steps.app-token.outputs.token }}
23+
- name: Setup Nix
24+
uses: cachix/install-nix-action@v31
25+
- name: Update flake inputs
26+
uses: mic92/update-flake-inputs@main
27+
with:
28+
github-token: ${{ steps.app-token.outputs.token }}
29+
auto-merge: true
30+
# Optional: exclude specific files or inputs
31+
# exclude-patterns: 'tests/**/flake.nix,examples/**/flake.nix#home-manager'

.github/workflows/update-flake-lock.yml

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

0 commit comments

Comments
 (0)