-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (32 loc) · 949 Bytes
/
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
name: Update elisp
on:
workflow_dispatch:
workflow_call:
jobs:
update:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
ref: develop
- uses: cachix/install-nix-action@v22
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: |
nix flake lock \
--update-input melpa \
--update-input gnu-elpa \
--update-input epkgs
- run: nix run .#update --impure
- run: nix run .#update-elisp-lock
- uses: peter-evans/create-pull-request@v4
with:
base: develop
token: ${{ secrets.PAT_FOR_PR }}
title: 'Update Emacs Lisp packages'
branch: update/elisp-packages
labels: automation,update,emacs