nvim.nix/.github/workflows/update.yml
jiriks74 a807c21d37
All checks were successful
Perform checks / formatting (push) Successful in 45s
Perform checks / nix_flake_check (push) Successful in 51s
Perform checks / nix_build (push) Successful in 4m14s
fix: Use modified update-flake-lock action
It uses an updated create-pull-request action that works with Gitea/Forgejo
2024-12-13 14:02:34 +01:00

30 lines
1 KiB
YAML

name: Update `flake.lock`
on:
workflow_dispatch:
schedule:
- cron: '0 0 * * 0' # runs weekly on Sunday at 00:00
jobs:
update_lockfile:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install nix
uses: https://github.com/DeterminateSystems/nix-installer-action@main
- name: Setup Action cache for nix
uses: https://github.com/DeterminateSystems/magic-nix-cache-action@main
with:
fail-mode: true
- name: Update flake.lock
uses: https://forgejo.stefka.eu/jiriks74/update-flake-lock@main
with:
# inputs: dzgui dzgui-testing # We'll see whether I want to limit the updates to dzgui
token: ${{ secrets.FORGEJO_TOKEN_FOR_UPDATES }}
pr-title: "Update flake.lock"
pr-assignees: jiriks74
pr-labels: |
flake.lock
automated
- name: Print PR number
run: echo Pull request number is ${{ steps.update.outputs.pull-request-number }}.