mirror of
https://github.com/nickolaj-jepsen/nixos.git
synced 2026-01-22 16:16:50 +01:00
ci: add flake updater action
This commit is contained in:
parent
080bfd93b9
commit
8e5fba0d2e
1 changed files with 30 additions and 0 deletions
30
.github/workflows/update-flake.yml
vendored
Normal file
30
.github/workflows/update-flake.yml
vendored
Normal file
|
|
@ -0,0 +1,30 @@
|
||||||
|
name: Update flake.lock
|
||||||
|
on:
|
||||||
|
schedule:
|
||||||
|
- cron: '0 0 * * *' # Every night at midnight
|
||||||
|
workflow_dispatch: # Allow manual trigger
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
update:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
permissions:
|
||||||
|
contents: write
|
||||||
|
id-token: write
|
||||||
|
issues: write
|
||||||
|
pull-requests: write
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
- uses: DeterminateSystems/nix-installer-action@main
|
||||||
|
- uses: DeterminateSystems/magic-nix-cache-action@main
|
||||||
|
- uses: DeterminateSystems/update-flake-lock@main
|
||||||
|
id: update
|
||||||
|
with:
|
||||||
|
pr-title: "chore(flake): update flake.lock"
|
||||||
|
pr-labels: |
|
||||||
|
dependencies
|
||||||
|
automated
|
||||||
|
- name: Enable auto-merge
|
||||||
|
if: steps.update.outputs.pull-request-number != ''
|
||||||
|
run: gh pr merge --auto --rebase "${{ steps.update.outputs.pull-request-number }}"
|
||||||
|
env:
|
||||||
|
GH_TOKEN: ${{ github.token }}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue