Update flake inputs #41
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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" |