summaryrefslogtreecommitdiff
path: root/.github/workflows/update-flake.yaml
diff options
context:
space:
mode:
authorseth <[email protected]>2023-11-27 17:45:50 -0500
committerseth <[email protected]>2023-11-27 17:45:50 -0500
commit27dbb18788d807117b4ab2ab3c63713460665c1f (patch)
treef8eda3003c02ccaabbd9b257d9c7f47228716daf /.github/workflows/update-flake.yaml
parent0ee00e040c4c0b466825e9207e9899fc6a64160f (diff)
actions: reformat workflows
Diffstat (limited to '.github/workflows/update-flake.yaml')
-rw-r--r--.github/workflows/update-flake.yaml36
1 files changed, 36 insertions, 0 deletions
diff --git a/.github/workflows/update-flake.yaml b/.github/workflows/update-flake.yaml
new file mode 100644
index 0000000..f27539f
--- /dev/null
+++ b/.github/workflows/update-flake.yaml
@@ -0,0 +1,36 @@
+name: Update flake.lock
+
+on:
+ schedule:
+ # run every saturday
+ - cron: "0 0 * * 6"
+ workflow_dispatch:
+
+jobs:
+ update:
+ runs-on: ubuntu-latest
+
+ permissions:
+ contents: write
+ pull-requests: write
+
+ steps:
+ - uses: actions/checkout@v4
+
+ - name: Install Nix
+ uses: nixbuild/nix-quick-install-action@v26
+
+ - name: Update and create PR
+ uses: DeterminateSystems/update-flake-lock@v20
+ id: update
+ with:
+ commit-msg: "flake: update inputs"
+ pr-title: "flake: update inputs"
+ token: ${{ github.token }}
+
+ - name: Enable auto-merge
+ shell: bash
+ run: gh pr merge --auto --rebase "$PR_ID"
+ env:
+ GH_TOKEN: ${{ github.token }}
+ PR_ID: ${{ steps.update.outputs.pull-request-number }}