This shouldn't be automated.
J4E73ETKRZNO6FNSQKXPCE5SERRTDSGZUEOIW5KZGKITUH46TC2AC { config, ... }:letinherit (config.ciLib) commonConcurrency stepsWithCheckout;in{flake.actions-nix.workflows.".forgejo/workflows/update-flake-inputs.yml" = {name = "Update Flake Inputs";on = {workflow_dispatch = { };};concurrency = commonConcurrency "update-flake-inputs";jobs = {update-flake-inputs = {name = "Update Flake Inputs";runs-on = "plum";steps = stepsWithCheckout [{name = "Update specific inputs";run = # bash''nix flake update opencode claude-code'';}{name = "Commit and push changes";run = # bash''fj auth add-key plumjam ''${{ secrets.FORGEJO_TOKEN }}git config --global user.name "PlumJam [bot]"git config --global user.email "forgejo-bot@plumj.am"if [ -n "$(git status --porcelain flake.lock)" ]; thengit add flake.lockgit commit -m "nix: Update flake inputs for AI tools."git push origin masterecho "Changes committed and pushed."elseecho "No changes to push."fi'';}];};};};}# schedule = [# # See `./update-flake-inputs.nix` for more details.# { cron = "0 0 * * *"; } # Every day at 00:05. Keep ahead of `./update-flake-inputs.yml`.# ];
jobs:if [ -n "$(git status --porcelain flake.lock)" ]; thengit add flake.lockgit commit -m "nix: Update flake inputs for AI tools."git push origin masterecho "Changes committed and pushed."elseecho "No changes to push."finame: Update Flake Inputs'on':workflow_dispatch: {}git config --global user.name "PlumJam [bot]"git config --global user.email "forgejo-bot@plumj.am"update-flake-inputs:name: Update Flake Inputsruns-on: plumsteps:- name: Checkoutuses: actions/checkout@v5- name: Update specific inputsrun: nix flake update opencode claude-code- name: Commit and push changesrun: |-fj auth add-key plumjam ${{ secrets.FORGEJO_TOKEN }}# This file was autogenerated by actions.nix. Do not edit it manually.# To make changes, edit the workflow definition in your flake's actions-nix configuration# (typically under flake.actions-nix.workflows.".forgejo/workflows/update-flake-inputs.yml") and run:# nix run .#render-workflows# Or commit to trigger the pre-commit hook if enabled.concurrency:cancel-in-progress: falsegroup: update-flake-inputs-${{ forgejo.ref_name }}