From 22681b493030fa809b75485033e03aea26b05ec7 Mon Sep 17 00:00:00 2001 From: brandon s allbery kf8nh Date: Fri, 13 Sep 2024 23:13:16 -0400 Subject: [PATCH] changelogs are docs We don't mark changelogs as documentation, so CI unnecessarily does full checks when we add changelogs. Correct this. NOTE: we only accept changelog files from top-level subdirectories. There are changelog files in various tests that must be considered to be "code". (cherry picked from commit 871c0d46a3d5d18f8726dcc0aa66e0466890166a) --- .github/workflows/bootstrap.skip.yml | 9 +++++++++ .github/workflows/bootstrap.yml | 9 +++++++++ .github/workflows/check-sdist.yml | 9 +++++++++ .github/workflows/validate.skip.yml | 9 +++++++++ .github/workflows/validate.yml | 9 +++++++++ 5 files changed, 45 insertions(+) diff --git a/.github/workflows/bootstrap.skip.yml b/.github/workflows/bootstrap.skip.yml index 3a47870b533..40ccb0ae9bc 100644 --- a/.github/workflows/bootstrap.skip.yml +++ b/.github/workflows/bootstrap.skip.yml @@ -19,6 +19,11 @@ on: - 'doc/**' - '**/README.md' - 'CONTRIBUTING.md' + - "changelog.d/**" + # only top level for these, because various test packages have them too + - "*/ChangeLog.md" + - "*/changelog.md" + - "release-notes/**" branches: - master pull_request: @@ -26,6 +31,10 @@ on: - 'doc/**' - '**/README.md' - 'CONTRIBUTING.md' + - "changelog.d/**" + - "*/ChangeLog.md" + - "*/changelog.md" + - "release-notes/**" release: types: - created diff --git a/.github/workflows/bootstrap.yml b/.github/workflows/bootstrap.yml index 5a4ed59dfc5..640802e5403 100644 --- a/.github/workflows/bootstrap.yml +++ b/.github/workflows/bootstrap.yml @@ -14,6 +14,11 @@ on: - 'doc/**' - '**/README.md' - 'CONTRIBUTING.md' + - "changelog.d/**" + # only top level for these, because various test packages have them too + - "*/ChangeLog.md" + - "*/changelog.md" + - "release-notes/**" branches: - master pull_request: @@ -21,6 +26,10 @@ on: - 'doc/**' - '**/README.md' - 'CONTRIBUTING.md' + - "changelog.d/**" + - "*/ChangeLog.md" + - "*/changelog.md" + - "release-notes/**" release: types: - created diff --git a/.github/workflows/check-sdist.yml b/.github/workflows/check-sdist.yml index d295ad0ccca..3b891465ecc 100644 --- a/.github/workflows/check-sdist.yml +++ b/.github/workflows/check-sdist.yml @@ -11,6 +11,11 @@ on: - "doc/**" - "**/README.md" - "CONTRIBUTING.md" + - "changelog.d/**" + # only top level for these, because various test packages have them too + - "*/ChangeLog.md" + - "*/changelog.md" + - "release-notes/**" branches: - master pull_request: @@ -18,6 +23,10 @@ on: - "doc/**" - "**/README.md" - "CONTRIBUTING.md" + - "changelog.d/**" + - "*/ChangeLog.md" + - "*/changelog.md" + - "release-notes/**" release: types: - created diff --git a/.github/workflows/validate.skip.yml b/.github/workflows/validate.skip.yml index af608e92d49..f4aa50ae191 100644 --- a/.github/workflows/validate.skip.yml +++ b/.github/workflows/validate.skip.yml @@ -19,6 +19,11 @@ on: - 'doc/**' - '**/README.md' - 'CONTRIBUTING.md' + - "changelog.d/**" + # only top level for these, because various test packages have them too + - "*/ChangeLog.md" + - "*/changelog.md" + - "release-notes/**" branches: - master pull_request: @@ -26,6 +31,10 @@ on: - 'doc/**' - '**/README.md' - 'CONTRIBUTING.md' + - "changelog.d/**" + - "*/ChangeLog.md" + - "*/changelog.md" + - "release-notes/**" release: types: - created diff --git a/.github/workflows/validate.yml b/.github/workflows/validate.yml index 432277a9d5c..1533512570b 100644 --- a/.github/workflows/validate.yml +++ b/.github/workflows/validate.yml @@ -14,6 +14,11 @@ on: - "doc/**" - "**/README.md" - "CONTRIBUTING.md" + - "changelog.d/**" + # only top level for these, because various test packages have them too + - "*/ChangeLog.md" + - "*/changelog.md" + - "release-notes/**" branches: - master pull_request: @@ -21,6 +26,10 @@ on: - "doc/**" - "**/README.md" - "CONTRIBUTING.md" + - "changelog.d/**" + - "*/ChangeLog.md" + - "*/changelog.md" + - "release-notes/**" release: types: - created