From 287ac3dd0f7511c5a2f486af49dc61c9f3451f86 Mon Sep 17 00:00:00 2001 From: ThetaSinner Date: Fri, 15 Mar 2024 00:14:17 +0000 Subject: [PATCH] Create flake update job --- .github/workflows/flake_update.yaml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/flake_update.yaml diff --git a/.github/workflows/flake_update.yaml b/.github/workflows/flake_update.yaml new file mode 100644 index 00000000..15f12660 --- /dev/null +++ b/.github/workflows/flake_update.yaml @@ -0,0 +1,26 @@ +name: "flake_update" + +on: + schedule: + # At 7:00am on Monday + - cron: "0 7 * * 1" + +jobs: + flake_update: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - name: Flake update + run: | + nix flake update + + - name: Create Pull Request + uses: peter-evans/create-pull-request@v6 + with: + commit-message: "Update flake.lock" + title: "Update flake.lock" + body: "This PR updates the flake.lock file." + branch: "update-flake-lock" + branch-suffix: "short-commit-hash" + base: "main"