diff options
| -rw-r--r-- | .github/workflows/update.yml | 28 |
1 files changed, 28 insertions, 0 deletions
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" |
