Skip to content

Move and rename mckctl under ci/ as mckci #4474

Move and rename mckctl under ci/ as mckci

Move and rename mckctl under ci/ as mckci #4474

name: Validate Changelog Requirement
on:
pull_request:
branches:
- master
- release-*
types:
- opened
- synchronize
- reopened
- labeled
- unlabeled
jobs:
validate-changelog:
name: Check for valid changelog entry
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Check out repository
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
with:
fetch-depth: '0'
- name: Switch to root context
id: switch_context
uses: ./.github/actions/switch-context
with:
context-name: 'root-context'
- name: Setup host
uses: ./.github/actions/setup-ubuntu-host
with:
python-version: ${{ env.PYTHON_VERSION }}
- name: Check if changelog entry file was added in this PR
run: |
set -o pipefail
python -m scripts.release.check_changelog -b $BASE_SHA -f $FAIL_ON_NO_CHANGES | tee >> $GITHUB_STEP_SUMMARY
env:
BASE_SHA: ${{ github.event.pull_request.base.sha }}
FAIL_ON_NO_CHANGES: ${{ !contains(github.event.pull_request.labels.*.name, 'skip-changelog') }}