Update emacs snapshots with flake #15
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 emacs snapshots with flake | |
on: | |
schedule: | |
- cron: "15 10 1 * *" | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
ssh-key: ${{ secrets.SSH_PRIVATE_KEY }} | |
- uses: cachix/install-nix-action@v21 | |
with: | |
github_access_token: ${{ secrets.GITHUB_TOKEN }} | |
- name: Update emacs snapshots | |
run: nix flake update | |
- name: Create Pull Request | |
uses: peter-evans/create-pull-request@v5 | |
with: | |
title: 'Emacs snapshots update' | |
body: '' | |
commit-message: 'Update emacs snapshots' | |
branch: emacs-snapshot | |
branch-suffix: timestamp | |
delete-branch: true | |
add-paths: flake* |