Repository navigation
release: also run on its own twice a week when something new was merged - #123
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: adssib <75389300+adssib@users.noreply.github.com>
|
Claude finished @adssib's task in 1m 34s —— View job ✅ Ready to merge. The scheduled run is gated correctly: every check still comes before the tag, and when nothing has been merged since the last tag the run exits cleanly. One thing on Rules
BugsNone found in this PR. How the new logic behaves:
Verified
Non-blocking (optional, inline comments posted)
|
|
|
||
| on: | ||
| schedule: | ||
| - cron: "0 14 * * 1,4" # Mon + Thu 14:00 UTC; scheduled runs are always a patch release |
There was a problem hiding this comment.
Non-blocking, but worth deciding on: scheduled runs always make a patch, while the header (line 9) says new format plugins and new exported API should be a minor. If a PR like that is merged on Tuesday and nobody runs the workflow by hand before Thursday 14:00 UTC, it ships as v0.x.(y+1). That tag can't be moved afterwards (line 18).
Two cheap ways to handle it:
- Add a line to CONTRIBUTING → Releasing: "after merging a minor-worthy PR, run Release with
minorbefore the next scheduled run." - Or have the scheduled run skip, with a
::warning::, whengit diff --name-only "$latest"..HEADtouches a newplugins/*/directory. A maintainer then cuts the minor by hand.
| git config user.name "github-actions[bot]" | ||
| git config user.email "41898282+github-actions[bot]@users.noreply.github.com" | ||
| git tag -a "$TAG" "$SHA" -m "$TAG" -m "Released by @$ACTOR with the Release workflow." | ||
| git tag -a "$TAG" "$SHA" -m "$TAG" -m "Released by the Release workflow ($EVENT_NAME, @$ACTOR)." |
There was a problem hiding this comment.
Non-blocking: on schedule events, github.actor is the user who last changed the cron line, not someone who pressed the button. Every automatic tag would read "(schedule, @adssib)", which suggests a person released it. You could drop the actor on scheduled runs, for example:
by="$EVENT_NAME"; [ "$EVENT_NAME" = "workflow_dispatch" ] && by="$EVENT_NAME, @$ACTOR"
git tag -a "$TAG" "$SHA" -m "$TAG" -m "Released by the Release workflow ($by)."…ort order The scheduled run now skips with a warning when a new plugins/<format>/ directory appeared since the last tag (that's a minor, cut by hand), and scheduled tags no longer credit whoever last edited the workflow. plugins/all/all.go had catalog before apichangelog (gofmt), which failed CI_go on main since the redis merge. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: adssib <75389300+adssib@users.noreply.github.com>
The Release workflow now also runs on its own every Monday and Thursday at 14:00 UTC:
main's HEAD is already tagged, it logs "nothing merged since vX: no release this time" and stops, with no error and no tag.inputs.bump, which defaults to patch).Why scheduled and not a tag on every merge:
main.A merged plugin reaches patch-it's hosted ingestion service within a few days.
Docs: the
CONTRIBUTING.mdReleasing section and table row, andAGENTS.md→ Releases.Checks: the YAML parses and actionlint passes.
🤖 Generated with Claude Code