-
Notifications
You must be signed in to change notification settings - Fork 40
31 lines (31 loc) · 964 Bytes
/
update-flake-inputs.yml
File metadata and controls
31 lines (31 loc) · 964 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
name: Update Flake Inputs
on:
schedule:
- cron: "0 2 * * 0"
workflow_dispatch:
jobs:
update-flake-inputs:
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
steps:
- name: Generate GitHub App Token
id: app-token
uses: actions/create-github-app-token@v2
with:
app-id: ${{ secrets.APP_ID }}
private-key: ${{ secrets.APP_PRIVATE_KEY }}
- name: Checkout repository
uses: actions/checkout@v4
with:
token: ${{ steps.app-token.outputs.token }}
- name: Setup Nix
uses: cachix/install-nix-action@v31
- name: Update flake inputs
uses: mic92/update-flake-inputs@main
with:
github-token: ${{ steps.app-token.outputs.token }}
auto-merge: true
# Optional: exclude specific files or inputs
# exclude-patterns: 'tests/**/flake.nix,examples/**/flake.nix#home-manager'