Skip to content

chore(deps): bump actions/setup-python from 5 to 7 #31

chore(deps): bump actions/setup-python from 5 to 7

chore(deps): bump actions/setup-python from 5 to 7 #31

# Copyright 2025 NVIDIA CORPORATION
# SPDX-License-Identifier: Apache-2.0
name: Validate Changelog
on:
pull_request:
types: [opened, synchronize, reopened, labeled, unlabeled]
branches:
- main
- 'v*.*'
merge_group:
types: [checks_requested]
jobs:
validate-changelog:
name: Validate Changelog
runs-on: ubuntu-latest
steps:
# For merge queue: changelog was already validated, just succeed
- name: Skip validation for merge queue
if: github.event_name == 'merge_group'
run: echo "Changelog was already validated before entering merge queue"
- uses: actions/checkout@v7
if: github.event_name == 'pull_request' && !contains(github.event.pull_request.labels.*.name, 'skip-changelog') && !contains(github.event.pull_request.labels.*.name, 'dependencies')
with:
fetch-depth: 0
# Changelog entries are managed as changie fragments (see CONTRIBUTING.md).
# A behavior-changing PR must add a fragment under .changes/unreleased/ (run `make changelog`).
- name: Check changelog fragment added
if: github.event_name == 'pull_request' && !contains(github.event.pull_request.labels.*.name, 'skip-changelog') && !contains(github.event.pull_request.labels.*.name, 'dependencies')
run: |
if git diff --name-only origin/${{ github.base_ref }}...HEAD | grep -qE '^\.changes/unreleased/[^/]+\.yaml$'; then
echo "Changelog fragment added."
else
echo "::error::No changelog fragment found. Run 'make changelog' to add one, or add the 'skip-changelog' label to opt out."
exit 1
fi