From 8793f7ee15ea1bf294769480a744f05c6589b26f Mon Sep 17 00:00:00 2001 From: NAHO <90870942+trueNAHO@users.noreply.github.com> Date: Thu, 22 Aug 2024 23:07:22 +0200 Subject: [PATCH] ci: add Nix Flake Update GitHub workflow to keep flake inputs updated This change requires GitHub workflows to have read and write permissions [1] [2]. [1]: https://github.com/DeterminateSystems/update-flake-lock/issues/75 [2]: https://github.com/DeterminateSystems/update-flake-lock/issues/88 --- .github/workflows/nix_flake_update.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/nix_flake_update.yml diff --git a/.github/workflows/nix_flake_update.yml b/.github/workflows/nix_flake_update.yml new file mode 100644 index 00000000..74c285d0 --- /dev/null +++ b/.github/workflows/nix_flake_update.yml @@ -0,0 +1,26 @@ +--- +name: Nix Flake Update + +on: # yamllint disable-line rule:truthy + workflow_dispatch: + + schedule: + - cron: "0 0 1 * *" + +jobs: + nix-flake-update: + runs-on: ubuntu-22.04 + + permissions: + contents: write + pull-requests: write + + steps: + - uses: actions/checkout@v4 + - uses: DeterminateSystems/nix-installer-action@v13 + - uses: DeterminateSystems/magic-nix-cache-action@v6 + + - uses: DeterminateSystems/update-flake-lock@v23 + with: + pr-labels: dependencies + pr-title: "stylix: update all flake inputs"