From 7863b984f32a3b1db51e5f2a35b2c2d5fc0c008e Mon Sep 17 00:00:00 2001 From: Mat Jones Date: Fri, 8 Mar 2024 07:10:03 -0500 Subject: [PATCH] chore(ci): Add CI job to update flake dependencies --- .github/workflows/update-flake.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/update-flake.yml diff --git a/.github/workflows/update-flake.yml b/.github/workflows/update-flake.yml new file mode 100644 index 0000000..8b5da7d --- /dev/null +++ b/.github/workflows/update-flake.yml @@ -0,0 +1,22 @@ +name: Update flake dependencies + +on: + schedule: + - cron: '0 16 * * 5' + workflow_dispatch: # for allowing manual triggers of the workflow + +jobs: + update-dependencies: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: DeterminateSystems/nix-installer-action@main + - uses: DeterminateSystems/magic-nix-cache-action@main + - name: update flake.lock + run: nix flake update + - name: Create Pull Request + uses: peter-evans/create-pull-request@v6 + with: + commit-message: "flake: update dependencies" + title: "[automation] update flake dependencies" + branch: "automation/update-flake-dependencies"