aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows/update.yml
blob: b186509ccb383a06837b1a3a63ba8c48359dab86 (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
name: Rebuild base16 colorschemes
on:
  push:
    branches: [main]
  pull_request:
    branches: [main]
  schedule:
    - cron: "0 0 * * *" # https://crontab.guru/every-day
jobs:
  run:
    runs-on: ubuntu-latest
    steps:
      - name: Get nix
        uses: cachix/install-nix-action@v12
        with:
          nix_path: nixpkgs=channel:nixos-unstable
      - name: Fetch the repository code
        uses: actions/checkout@v2
      - name: Build
        run: nix-shell --run "mmake"
      - name: Commit the changes, if any
        uses: stefanzweifel/git-auto-commit-action@v4.1.1
        with:
          commit_message: Update repository with the latest base16 colorschemes
          branch: ${{ github.head_ref }}