Files
dependabot[bot] 30756ea100 chore(deps): bump actions/checkout from 6.0.0 to 7.0.0
Bumps [actions/checkout](https://github.com/actions/checkout) from 6.0.0 to 7.0.0.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](1af3b93b68...9c091bb21b)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-version: 7.0.0
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-07-08 19:36:52 +00:00

73 lines
1.9 KiB
YAML

# SPDX-FileCopyrightText: Copyright (C) swift Project Community / Contributors
# SPDX-License-Identifier: CC0-1.0
name: Pull request validation
on:
pull_request:
concurrency:
group: pr-${{ github.event.pull_request.number }}
cancel-in-progress: true
env:
qt_version: &qt_version 6.11.1
jobs:
checks:
uses: ./.github/workflows/reusable_checks.yml
doxygen:
uses: ./.github/workflows/reusable_doxygen.yml
with:
upload_doxygen: false
qt_version: *qt_version
changelog:
runs-on: ubuntu-24.04
permissions:
pull-requests: read
issues: read
contents: read
steps:
- name: Checkout repository
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0
with:
fetch-depth: '0'
- name: Check for CHANGELOG or no-changelog label
env:
GH_TOKEN: ${{ github.token }}
run: |
set -e
BASE_SHA="${{ github.event.pull_request.base.sha }}"
HEAD_SHA="${{ github.event.pull_request.head.sha }}"
echo "Checking changed files..."
if git diff --name-only "$BASE_SHA" "$HEAD_SHA" | grep -qx "CHANGELOG.md"; then
echo "✅ CHANGELOG.md was modified."
exit 0
fi
echo "CHANGELOG.md not modified. Checking labels..."
LABELS=$(gh api \
repos/${{ github.repository }}/issues/${{ github.event.pull_request.number }}/labels \
--jq '.[].name')
if echo "$LABELS" | grep -qx "no-changelog"; then
echo "✅ no-changelog label found."
exit 0
fi
echo "::error::This PR must either modify CHANGELOG.md or have the 'no-changelog' label."
exit 1
postBuild: # just a job with the same name as in the merge queue build to satisfy requirements
runs-on: ubuntu-latest
needs: [checks, doxygen, changelog]
steps:
- run: true