fork/nix-minecraft

git clone https://git.julia.blue/fork/nix-minecraft

Gabriel Fontesadd github action for auto updates1db2ae7

module/fix-14
619 B24 linesraw
1name: Update package locks
2
3on:
4  schedule:
5    - cron: '0 0 * * *' # Daily at 00:00
6  workflow_dispatch: # Can be triggered manually as well
7
8jobs:
9  update:
10    name: Update lock files
11    runs-on: ubuntu-latest
12    steps:
13      - uses: cachix/install-nix-action@v18
14        with:
15          nix_path: nixpkgs=channel:nixos-unstable
16      - uses: actions/checkout@v3
17      - name: Run scripts
18        run: |
19          for script in pkgs/*/update.py; do
20            ./$script
21          done
22      - uses: stefanzweifel/git-auto-commit-action@v4
23        with:
24          commit_message: "[gha] update package lock files"