summaryrefslogtreecommitdiff
path: root/.github/workflows/update-mods.yml
blob: cca46eeaa91650bbe7cd92aac3f36ed00a1075ad (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
name: Update mods

on:
  schedule:
    # run on saturdays at 0:00 utc
    - cron: "0 0 * * 6"
  workflow_dispatch:

jobs:
  update-mods:
    runs-on: ubuntu-latest

    permissions:
      contents: write

    steps:
      - uses: actions/[email protected]
      - uses: cachix/install-nix-action@v20

      - name: update
        run: |
          echo "y" | nix run nixpkgs#packwiz -- update --all

      - name: commit changes
        uses: EndBug/add-and-commit@v9
        with:
          default_author: github_actions
          message: "chore: update mods"