26 lines
828 B
YAML
26 lines
828 B
YAML
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 }}
|
|
# disable temporarily, can be reenabled when hercules fork action is removed
|
|
#- name: Enable Automerge
|
|
# run: gh pr merge --rebase --auto "${{ steps.update.outputs.pull-request-number }}"
|
|
# env:
|
|
# GH_TOKEN: ${{ secrets.GH_TOKEN_FOR_UPDATES }}
|