From ef9c64d19ca5409013995107853f0d0b55e40f08 Mon Sep 17 00:00:00 2001 From: takeokunn Date: Wed, 11 Sep 2024 21:16:49 +0900 Subject: [PATCH] update --- .github/workflows/update.yml | 38 ++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 .github/workflows/update.yml diff --git a/.github/workflows/update.yml b/.github/workflows/update.yml new file mode 100644 index 0000000..1a51a42 --- /dev/null +++ b/.github/workflows/update.yml @@ -0,0 +1,38 @@ +name: update + +on: + workflow_dispatch: + schedule: + - cron: '0 19 * * *' + +jobs: + nix-flake: + name: Nix Flake Check + runs-on: ubuntu-latest + steps: + - name: checkout + uses: actions/checkout@v4 + - name: prepare nix + uses: cachix/install-nix-action@v27 + - uses: cachix/cachix-action@v14 + with: + name: devenv + - name: Install devenv.sh + run: nix profile install nixpkgs#devenv + + # update + - name: Run nvfetcher + run: nix run nixpkgs#nvfetcher + - name: Run flake update + run: nix flake update + - name: Run devenv update + run: devenv update + + # git push + - name: Commit changes + run: | + git config --global user.email "actions@github.com" + git config --global user.name "GitHub Actions" + git add . + git commit -m "Update lockfiles" + git push origin HEAD