diff options
| author | Claude <noreply@anthropic.com> | 2026-10-26 23:33:25 +0000 |
|---|---|---|
| committer | Claude <noreply@anthropic.com> | 2026-10-26 23:33:25 +0000 |
| commit | a91aceb6ef12e57200c38278c80daec03cd71d21 (patch) | |
| tree | 5da4f16d170ff9ef9e322cb8aef01d79a1db9484 /.github/workflows | |
| parent | 1da406f428c285c701a1033a3aef368a9ab865dc (diff) | |
Fail PRs that change a versioned plugin without bumping itcheck-plugin-version-bumps
An installed plugin only updates when its version string changes, so a
merged change to a plugin that declares a version never reaches existing
installs until someone bumps it.
Co-authored-by: mhegazy <mhegazy@anthropic.com>
Diffstat (limited to '.github/workflows')
| -rw-r--r-- | .github/workflows/check-version-bumps.yml | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/.github/workflows/check-version-bumps.yml b/.github/workflows/check-version-bumps.yml new file mode 100644 index 00000000..2ec8d4ed --- /dev/null +++ b/.github/workflows/check-version-bumps.yml @@ -0,0 +1,30 @@ +name: Check Version Bumps + +on: + pull_request: + paths: + - 'plugins/**' + - 'external_plugins/**' + - '.claude-plugin/marketplace.json' + - '.github/scripts/check_version_bumps.py' + - '.github/workflows/check-version-bumps.yml' + +permissions: + contents: read + +jobs: + version-bumps: + # Fork PRs are auto-closed by close-external-prs.yml. + if: github.event.pull_request.head.repo.full_name == github.repository + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 + with: + fetch-depth: 0 + persist-credentials: false + + - name: Check that changed plugins have a new version + env: + BASE_SHA: ${{ github.event.pull_request.base.sha }} + HEAD_SHA: ${{ github.event.pull_request.head.sha }} + run: python3 .github/scripts/check_version_bumps.py "$BASE_SHA" "$HEAD_SHA" |
