-
Notifications
You must be signed in to change notification settings - Fork 1
50 lines (41 loc) · 1.15 KB
/
update-data.yml
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
name: Update the library lists
on:
schedule:
- cron: '0 15 * * 1'
workflow_dispatch:
pull_request:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
update:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: cachix/install-nix-action@v23
with:
extra_nix_config: |
accept-flake-config = true
- name: Update the Emacs package set
run: nix flake update
- name: Update the definitions
run: nix develop -c just
- name: Check the output
run: |
nix flake check
git add ./generated
nix eval .#data --json | jq
- name: Prevent flake.lock from being committed
run: |
rm -f flake.lock
git rm -f --cached flake.lock
- name: Create Pull Request
uses: peter-evans/create-pull-request@v5
with:
title: 'Update the library lists'
commit-message: 'chore: Update the library lists'
branch: "automation/update-library-lists-${{ github.ref_name }}"
base: master
delete-branch: true
add-paths: generated
labels: automation,update