switch back to actions for flake update
This commit is contained in:
parent
43e9cabeb9
commit
ba6d94bda2
2 changed files with 25 additions and 10 deletions
25
.github/workflows/flake-updates.yml
vendored
Normal file
25
.github/workflows/flake-updates.yml
vendored
Normal file
|
@ -0,0 +1,25 @@
|
|||
name: "Update flakes"
|
||||
on:
|
||||
repository_dispatch:
|
||||
workflow_dispatch:
|
||||
schedule:
|
||||
- cron: "51 2 * * 1,4"
|
||||
jobs:
|
||||
createPullRequest:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Install Nix
|
||||
uses: cachix/install-nix-action@v23
|
||||
with:
|
||||
extra_nix_config: |
|
||||
experimental-features = nix-command flakes
|
||||
- name: Update flake.lock
|
||||
id: update
|
||||
uses: DeterminateSystems/update-flake-lock@v20
|
||||
with:
|
||||
token: ${{ secrets.GH_TOKEN_FOR_UPDATES }}
|
||||
- name: Enable Automerge
|
||||
run: gh pr merge --rebase --auto "${{ steps.update.outputs.pull-request-number }}"
|
||||
env:
|
||||
GH_TOKEN: ${{ secrets.GH_TOKEN_FOR_UPDATES }}
|
10
flake.nix
10
flake.nix
|
@ -53,16 +53,6 @@
|
|||
|
||||
herculesCI.ciSystems = [ "x86_64-linux" "aarch64-linux" ];
|
||||
|
||||
hercules-ci.flake-update = {
|
||||
enable = true;
|
||||
createPullRequest = true;
|
||||
autoMergeMethod = "rebase";
|
||||
when = {
|
||||
hour = [ 2 ];
|
||||
dayOfWeek = [ "Mon" "Thu" ];
|
||||
};
|
||||
};
|
||||
|
||||
imports = [
|
||||
inputs.hercules-ci-effects.flakeModule
|
||||
inputs.treefmt-nix.flakeModule
|
||||
|
|
Loading…
Add table
Reference in a new issue