summaryrefslogtreecommitdiff
path: root/.github/workflows/update-checksums.yml
blob: 7a5b9a3f778411f31a868df0cbb56b2232829e17 (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
29
30
31
32
33
name: Update mod checksums

on:
  push:
    paths:
      # only run when mod files are changed
      - mods/**
  workflow_dispatch:
  workflow_run:
    workflows: ["Update mods"]
    types:
      - completed

permissions:
  contents: write

jobs:
  build-modpack:
    runs-on: ubuntu-latest

    steps:
      - uses: actions/checkout@v3
      - uses: cachix/install-nix-action@v20

      - name: generate new checksums
        run: |
          nix run --impure .#generate-checksums

      - name: commit changes
        uses: EndBug/add-and-commit@v9
        with:
          default_author: github_actions
          message: "chore(flake): update mod checksums"