switch back to actions for flake update

This commit is contained in:
zowoq 2023-09-15 10:31:20 +10:00
parent 43e9cabeb9
commit ba6d94bda2
2 changed files with 25 additions and 10 deletions

25
.github/workflows/flake-updates.yml vendored Normal file
View 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 }}

View file

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