added github actions

This commit is contained in:
Storm
2025-03-29 22:00:37 +01:00
parent 869ed6a1e6
commit 8938636dfb
2 changed files with 73 additions and 0 deletions
+29
View File
@@ -0,0 +1,29 @@
name: update-flake-lock
on:
workflow_dispatch:
schedule:
- cron: "0 0 * * 0" # runs weekly on Sunday at 00:00
jobs:
update-flake-lock:
runs-on: ubuntu-latest
steps:
- name: "Checking out repository..."
uses: actions/checkout@v4
- name: "Installing and configuring the nix package manager..."
uses: DeterminateSystems/nix-installer-action@main
with:
extra-conf: |
accept-flake-config = true
- name: "Updating flake.lock..."
uses: DeterminateSystems/update-flake-lock@main
with:
pr-title: "Automated action - Update flake.lock"
pr-labels: |
dependencies
automated
# NOTE You can use a PAT to identify as a user, for CI purposes
# token: ${{ secrets.GH_TOKEN_FOR_UPDATES }}