-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (35 loc) · 1.03 KB
/
update-elisp.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
name: Update elisp
on:
workflow_dispatch:
workflow_call:
jobs:
update:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
ref: develop
- uses: cachix/install-nix-action@V28
with:
extra_nix_config: |
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}
- run: |
git config --add user.name 'github-actions[bot]'
git config --add user.email '6270544+github-actions[bot]@users.noreply.github.com'
- run: git switch -C bot/update/elisp-packages develop
- run: |
for input in melpa gnu-elpa epkgs; do
nix flake update $input
done
- run: |
nix run .#lock --impure
if ! git diff-tree --exit-code HEAD; then
git commit -am 'emacs: Update lock entries'
fi
- run: |
nix run .#update --impure
if ! git diff-tree --exit-code HEAD; then
git commit -am 'emacs: Update ELPA packages'
fi
- run: nix run .#update-elisp-lock
- run: git push origin HEAD --force