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
Conversation
@akirak would could you have a look and validate if we need to add anything else? You're more experienced with nix.
|
No. Even if we build packages, we only need Emacs executables, which is available on nix develop .#emacs-release-snapshot --accept-flake-config |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note that peter-evans/create-pull-request doesn't trigger workflows by default. See https://github.com/peter-evans/create-pull-request/blob/main/docs/concepts-guidelines.md#triggering-further-workflow-runs for information.
- uses: cachix/install-nix-action@v21 | ||
with: | ||
github_access_token: ${{ secrets.GITHUB_TOKEN }} | ||
nix_path: nixpkgs=channel:nixos-unstable |
There was a problem hiding this comment.
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.
@akirak do we also need |
Thank you for highlighting it. As we don't push to remote repository deployment ssh key should be enough. |
No, we need it only for - uses: cachix/install-nix-action@v21
with:
extra_nix_config: |
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}
# Use the binary cache configured in `nixConfig` section
accept-flake-config = true |
@zonuexe I have updated PR to use https://github.com/peter-evans/create-pull-request/blob/main/docs/concepts-guidelines.md#push-using-ssh-deploy-keys Please generated a SSH key and add private key as This should be good enough for us. |
I generated a new SSH key and set it as deploy key and |
Thank you all. |
This is a scheduled action. It triggers once a month.
It updates flake lock and creates a PR if file content changed.
In addition it's possible to trigger the action manually.
resolves #21