From a983cd66f93d4621622b75f30e9905d1da25020a Mon Sep 17 00:00:00 2001 From: seth Date: Fri, 3 Mar 2023 01:03:28 -0500 Subject: start autoupdating nixpkgs inputs --- .github/workflows/update.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/update.yml (limited to '.github') diff --git a/.github/workflows/update.yml b/.github/workflows/update.yml new file mode 100644 index 0000000..d37d8ed --- /dev/null +++ b/.github/workflows/update.yml @@ -0,0 +1,28 @@ +name: update nixpkgs inputs + +on: + schedule: + - cron: "0 0 * * *" + workflow_dispatch: + +jobs: + update-lock: + runs-on: ubuntu-latest + + steps: + - name: checkout repo + uses: actions/checkout@v3 + + - name: install nix + uses: cachix/install-nix-action@v20 + with: + github_access_token: ${{ secrets.GITHUB_TOKEN }} + + - name: update inputs + run: nix flake lock --update-input nixpkgs --update-input nixpkgsUnstable + + - name: add and commit + uses: EndBug/add-and-commit@v9 + with: + default_author: github_actions + message: "chore: update nixpkgs inputs" -- cgit v1.2.3