diff --git a/.github/scripts/plugin-update.lua b/.github/scripts/plugin-update.lua index 56ccb0a..7d9bbf3 100644 --- a/.github/scripts/plugin-update.lua +++ b/.github/scripts/plugin-update.lua @@ -55,7 +55,7 @@ local function update() vim.env.GITHUB_RUN_ID or "" ) local lines = { - ("Weekly `:Lazy update` from the [plugin update workflow](%s)."):format(run), + ("`:Lazy update` from the [plugin update workflow](%s)."):format(run), "CI installs these exact commits into empty directories and runs the smoke test; merge if it's green.", "", "| Plugin | Change |", diff --git a/.github/workflows/plugin-update.yml b/.github/workflows/plugin-update.yml index 7a81fea..cf8880e 100644 --- a/.github/workflows/plugin-update.yml +++ b/.github/workflows/plugin-update.yml @@ -1,12 +1,10 @@ name: Plugin update -# Weekly `:Lazy update`. Commits the new lazy-lock.json to simonk/dev/plugin-update, opens or refreshes a PR, +# On-demand `:Lazy update`. Commits the new lazy-lock.json to simonk/dev/plugin-update, opens or refreshes a PR, # and dispatches CI on it, which runs the smoke test on the new commits. On a PR that changes the updater it only # does a dry run and shows the would-be PR body in the job summary. on: - schedule: - - cron: "0 15 * * 1" # Mondays 15:00 UTC workflow_dispatch: pull_request: paths: diff --git a/README.md b/README.md index a81235d..17e4407 100644 --- a/README.md +++ b/README.md @@ -22,7 +22,7 @@ The same config runs in WSL (Ubuntu 24.04): ## Updates -- **Plugins**: `.github/workflows/plugin-update.yml` runs `:Lazy update` every Monday (or on demand from the Actions tab), commits the new `lazy-lock.json` to `simonk/dev/plugin-update`, and opens or refreshes an *Update plugins* PR that links each plugin's changes. CI runs on that PR, so the smoke test covers the new commits; merge it if it's green. The workflow force-pushes the branch each week, but leaves it alone once it has a commit from anyone else, so you can push a fix to it. It needs **Allow GitHub Actions to create and approve pull requests** turned on in Settings → Actions → General. +- **Plugins**: `.github/workflows/plugin-update.yml` runs `:Lazy update` when you start it from the Actions tab, commits the new `lazy-lock.json` to `simonk/dev/plugin-update`, and opens or refreshes an *Update plugins* PR that links each plugin's changes. CI runs on that PR, so the smoke test covers the new commits; merge it if it's green. The workflow force-pushes the branch on each run, but leaves it alone once it has a commit from anyone else, so you can push a fix to it. It needs **Allow GitHub Actions to create and approve pull requests** turned on in Settings → Actions → General. - **GitHub Actions**: Dependabot (`.github/dependabot.yml`) opens one grouped PR a month for the actions used in workflows and `.github/actions/`. It skips generated `*.lock.yml` workflows, because `gh aw compile` would overwrite its edits; refresh those with `gh aw upgrade`. Dependabot can't update lazy.nvim plugins, hence the workflow above. ## CI checks