From 513615c6ebf2c7f07ec5ad7a5c0223f82ca6d02c Mon Sep 17 00:00:00 2001 From: Julian Stiller Date: Thu, 6 Feb 2025 15:40:27 +0100 Subject: [PATCH] Actions: Add flake update action --- .forgejo/workflows/update.yaml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .forgejo/workflows/update.yaml diff --git a/.forgejo/workflows/update.yaml b/.forgejo/workflows/update.yaml new file mode 100644 index 0000000..16596aa --- /dev/null +++ b/.forgejo/workflows/update.yaml @@ -0,0 +1,19 @@ +name: scheduled flake.lock update +on: + schedule: + - cron: "0 0 * * 0,2,4" + workflow_dispatch: {} + +jobs: + flake-lock-update: + runs-on: nixos-latest + steps: + - run: nix-env -iA nixpkgs.nodejs_20 nixpkgs.gnused nixpkgs.coreutils + - run: mkdir -p ~/.config/nix && echo "experimental-features = nix-command flakes" > ~/.config/nix/nix.conf + - uses: actions/checkout@v4 + with: + ref: 'main' + - uses: actions/nix-flake-update-pr.git@main + with: + token: ${{ secrets.FORGEJO_PR_TOKEN }} + author-email: flake@flyinggecko.org