Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add emacs snapshot update action #22

Merged
merged 3 commits into from Jun 7, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
28 changes: 28 additions & 0 deletions .github/workflows/update-snapshot.yml
@@ -0,0 +1,28 @@
name: Update emacs snapshots with flake

on:
schedule:
- cron: "15 10 * * 2"
workflow_dispatch:

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: cachix/install-nix-action@v21
with:
github_access_token: ${{ secrets.GITHUB_TOKEN }}
nix_path: nixpkgs=channel:nixos-unstable
Copy link
Contributor

@akirak akirak Jun 4, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We don't need this line because we only run nix flake update which doesn't depend on a nixpkgs channel.

- 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*