summaryrefslogtreecommitdiff
path: root/.github/workflows/check-version-bumps.yml
blob: 2ec8d4edd1a913c5283afeb62a8409f18d24822e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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"