name: Changelog check

on:
  pull_request:
    branches: [ master ]
    types: [ opened, synchronize, reopened, labeled, unlabeled ]

jobs:
  build:
    runs-on: ubuntu-latest

    steps:
    - uses: actions/checkout@v1

    - name: git diff
      if: ${{ !contains(github.event.pull_request.labels.*.name, 'no-changelog-needed') }}
      env:
        BASE_REF: ${{ github.event.pull_request.base.ref }}
      run: |
        ! git diff --exit-code origin/$BASE_REF -- CHANGES.md

name: Changelog check

on:
  pull_request:
    branches: [ main ]
    types: [ opened, synchronize, reopened, labeled, unlabeled ]

jobs:
  build:
    runs-on: ubuntu-latest

    steps:
    - uses: actions/checkout@v1

    - name: git diff
      if: ${{ !contains(github.event.pull_request.labels.*.name, 'no-changelog-needed') }}
      env:
        BASE_REF: ${{ github.event.pull_request.base.ref }}
      run: |
        ! git diff --exit-code origin/$BASE_REF -- CHANGES.md

Fix the CI changelog check following the `master` → `main` transition
Fix the CI changelog check following the `master` → `main` transition
