Skip to content

fix: change loop continuation to break when no solution is found in job solver #856

fix: change loop continuation to break when no solution is found in job solver

fix: change loop continuation to break when no solution is found in job solver #856

# 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@v4
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
- name: Check CHANGELOG.md updated
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 -q '^CHANGELOG.md$'; then
echo "CHANGELOG.md has been updated."
else
echo "::error::CHANGELOG.md has not been updated. Please update the changelog or add the 'skip-changelog' label to opt out."
exit 1
fi