Skip to content

ci: add reusable tagbot.yml - #58

Merged
ChrisRackauckas merged 1 commit into
SciML:masterfrom
ChrisRackauckas-Claude:reusable-tagbot
Jun 5, 2026
Merged

ChrisRackauckas merged 1 commit into
SciML:masterfrom
ChrisRackauckas-Claude:reusable-tagbot

Conversation

@ChrisRackauckas-Claude

Copy link
Copy Markdown
Member

Centralizes the near-identical TagBot.yml every SciML repo carries. Tags one package via JuliaRegistries/TagBot — the root package, or a monorepo sublibrary when subdir is set — using token + DOCUMENTER_KEY (ssh) from the caller's inherited secrets. The if-guard (workflow_dispatch or JuliaTagBot actor) and the permissions block live in the reusable workflow.

Standard caller (TagBot.yml):

name: TagBot
on:
  issue_comment:
    types: [created]
  workflow_dispatch:
jobs:
  tagbot:
    uses: SciML/.github/.github/workflows/tagbot.yml@v1
    secrets: inherit

Monorepo caller (root + each sublibrary):

jobs:
  tagbot:
    uses: SciML/.github/.github/workflows/tagbot.yml@v1
    secrets: inherit
  tagbot-sublibraries:
    strategy:
      fail-fast: false
      matrix:
        package: [lib/Foo, lib/Bar]
    uses: SciML/.github/.github/workflows/tagbot.yml@v1
    with:
      subdir: "${{ matrix.package }}"
    secrets: inherit

actionlint clean.

Ignore until reviewed by @ChrisRackauckas.

🤖 Generated with Claude Code

Centralize the TagBot workflow every SciML repo duplicates. Tags one package
via JuliaRegistries/TagBot — the root, or a monorepo sublibrary when `subdir`
is set — with token + DOCUMENTER_KEY (ssh) from the caller's inherited
secrets. The if-guard (workflow_dispatch or JuliaTagBot actor) and the
permissions block live here. Callers keep the issue_comment/workflow_dispatch
triggers; a monorepo caller matrixes over its lib/* and calls this per subdir.

Co-Authored-By: Chris Rackauckas <[email protected]>
Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants