From fe32dd0a9d321369bf1804ded59809ae36265158 Mon Sep 17 00:00:00 2001 From: Daniel Kempkens Date: Fri, 8 Dec 2023 00:57:51 +0100 Subject: [PATCH] ci: Daily flake update --- .forgejo/workflows/build.yml | 2 ++ .forgejo/workflows/update-flake.yml | 20 ++++++++++++++++++++ 2 files changed, 22 insertions(+) create mode 100644 .forgejo/workflows/update-flake.yml diff --git a/.forgejo/workflows/build.yml b/.forgejo/workflows/build.yml index 96bf2d8..64e53a5 100644 --- a/.forgejo/workflows/build.yml +++ b/.forgejo/workflows/build.yml @@ -6,6 +6,8 @@ on: - 'flake.lock' - 'home/programs/nvim/plugins.nix' - '.forgejo/workflows/build.yml' + schedule: + - cron: '20 4 * * *' jobs: build-amd64-linux: runs-on: nix-amd64 diff --git a/.forgejo/workflows/update-flake.yml b/.forgejo/workflows/update-flake.yml new file mode 100644 index 0000000..3fcadc4 --- /dev/null +++ b/.forgejo/workflows/update-flake.yml @@ -0,0 +1,20 @@ +name: Update Flake +on: + schedule: + - cron: '0 4 * * *' +jobs: + update-flake: + runs-on: nix-amd64 + permissions: + contents: write + steps: + - uses: actions/checkout@v4 + with: + ref: master + - run: nix flake update + - uses: https://github.com/stefanzweifel/git-auto-commit-action@v5 + with: + commit_message: "[automation] Update flake" + commit_user_name: Actions Bot + commit_user_email: daniel+actions-bot@kempkens.io + commit_author: Actions Bot