Update elisp #42
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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@V27 | |
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 |