Skip to content

Update flake inputs #40

Update flake inputs

Update flake inputs #40

Workflow file for this run

name: Update flake inputs
on:
schedule:
- cron: "0 0 * * 0" # weekly (all inputs)
- cron: "0 3 * * *" # daily 12:00 JST (edgepkgs)
workflow_dispatch:
inputs:
target:
description: "Update target"
type: choice
options:
- all
- edgepkgs
permissions:
contents: write
jobs:
update-all:
if: github.event.schedule == '0 0 * * 0' || (github.event_name == 'workflow_dispatch' && inputs.target == 'all')
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: DeterminateSystems/determinate-nix-action@v3
- run: nix flake update
- uses: stefanzweifel/git-auto-commit-action@v7
with:
commit_message: "flake: update inputs"
update-edgepkgs:
if: github.event.schedule == '0 3 * * *' || (github.event_name == 'workflow_dispatch' && inputs.target == 'edgepkgs')
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: DeterminateSystems/determinate-nix-action@v3
- run: nix flake update edgepkgs
- uses: stefanzweifel/git-auto-commit-action@v7
with:
commit_message: "flake: update input edgepkgs"