2026-01-05 15:53:29 +01:00

28 lines
882 B
YAML

name: update flake.lock
on:
workflow_dispatch: # allows manual triggering
schedule:
- cron: '30 2 1,15 * *' # At 02:30 on every 14th day-of-month.
jobs:
nix-flake-update:
permissions:
contents: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
- uses: cachix/install-nix-action@0b0e072294b088b73964f1d72dfdac0951439dbd # v31.8.4
with:
github_access_token: ${{ secrets.GITHUB_TOKEN }}
- name: Update flake
run: |
git fetch
git switch hyprshell
nix flake update
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
git add flake.lock
git commit -m "fix(nix-flake): update flake.lock"
git push origin hyprshell