Skip to content

chore(deps): bump dorny/paths-filter from 3 to 4 #22

chore(deps): bump dorny/paths-filter from 3 to 4

chore(deps): bump dorny/paths-filter from 3 to 4 #22

# 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