summaryrefslogtreecommitdiffstats
path: root/.github/workflows/flake-update.yml
blob: efe57c5cd8fc9494efa3beed1f74509ae02900f3 (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 flakes"

on:
  repository_dispatch:
  workflow_dispatch:
  schedule:
    # 01:15 every monday
    - cron:  '15 1 * * 1'

jobs:
  lockfile:
    runs-on: ubuntu-latest
    steps:
      - name: Checkout repository
        uses: actions/checkout@v3
      - name: Install Nix
        uses: cachix/install-nix-action@v22
        with:
          extra_nix_config: |
            access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}
      - name: Update flake.lock
        uses: DeterminateSystems/update-flake-lock@v20
        with:
          pr-title: "Update flake.lock" # Title of PR to be created
          # pr-labels: |                  # Labels to be set on the PR
          #   dependencies
          #   automated