Files
nix-fleet/.github/workflows/update.yml
Mo cb1bdc3782 Update GitHub Actions workflow for flake inputs
Removed pull-requests permission and added steps to update flake inputs and commit changes.
2026-03-11 21:23:25 +01:00

24 lines
642 B
YAML

name: Update flake inputs
on:
schedule:
- cron: '30 3 * * 0'
workflow_dispatch:
jobs:
update:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v4
- uses: DeterminateSystems/nix-installer-action@main
- name: Update flake inputs
run: nix flake update
- name: Commit and push
run: |
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 "flake: update inputs" || echo "No changes to commit"
git push