Skip to content

Commit 6df8a77

Browse files
Bump actions/checkout from 5 to 6 in the action-dependencies group (#130)
* Bump actions/checkout from 5 to 6 in the action-dependencies group Bumps the action-dependencies group with 1 update: [actions/checkout](https://github.com/actions/checkout). Updates `actions/checkout` from 5 to 6 - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](actions/checkout@v5...v6) --- updated-dependencies: - dependency-name: actions/checkout dependency-version: '6' dependency-type: direct:production update-type: version-update:semver-major dependency-group: action-dependencies ... Signed-off-by: dependabot[bot] <support@github.com> * ignore .github for changes --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Philip Loche <ploche@physik.fu-berlin.de>
1 parent 22e8b6c commit 6df8a77

7 files changed

Lines changed: 25 additions & 10 deletions

File tree

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
runs-on: ubuntu-latest
1212

1313
steps:
14-
- uses: actions/checkout@v5
14+
- uses: actions/checkout@v6
1515
with:
1616
fetch-depth: 0
1717

.github/workflows/docs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
runs-on: ubuntu-latest
1212

1313
steps:
14-
- uses: actions/checkout@v5
14+
- uses: actions/checkout@v6
1515
with:
1616
fetch-depth: 0
1717

.github/workflows/lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
runs-on: ubuntu-latest
1010

1111
steps:
12-
- uses: actions/checkout@v5
12+
- uses: actions/checkout@v6
1313
with:
1414
fetch-depth: 0
1515

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
contents: write
1717

1818
steps:
19-
- uses: actions/checkout@v5
19+
- uses: actions/checkout@v6
2020
with:
2121
fetch-depth: 0
2222
- name: setup Python

.github/workflows/tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
python-version: ['3.11', '3.13']
1717

1818
steps:
19-
- uses: actions/checkout@v5
19+
- uses: actions/checkout@v6
2020
with:
2121
fetch-depth: 0
2222

developer/check_changelog.py

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env python3
1+
#!/usr/bin/env python
22
"""Check if the CHANGELOG has been modified with respect to the main branch."""
33
import os
44

@@ -22,7 +22,21 @@ class ChangelogError(Exception):
2222
workfile = f.read()
2323

2424
if file.strip() == workfile.strip():
25-
raise ChangelogError("You have not updated the CHANGELOG file. Please "
26-
f"add a summary of your additions to {changelog}.")
25+
# Check for changed files and ignore .github/ changes
26+
head_commit = repo.head.commit
27+
diff = head_commit.diff("origin/main")
28+
changed_files = []
29+
for x in diff:
30+
if x.a_blob.path not in changed_files:
31+
changed_files.append(x.a_blob.path)
32+
if x.b_blob is not None and x.b_blob.path not in changed_files:
33+
changed_files.append(x.b_blob.path)
34+
changed_files = [x for x in changed_files if not x.startswith(".github/")]
35+
36+
if len(changed_files) > 0:
37+
raise ChangelogError("You have not updated the CHANGELOG file. Please "
38+
f"add a summary of your additions to {changelog}.")
39+
else:
40+
print("No changes detected.")
2741
else:
2842
print("CHANGELOG is up to date.")

docs/CHANGELOG.rst

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,10 @@ Changelog
55
Unreleased
66
----------
77

8+
* Ignore ``.github`` workflows for changelog checks
89
* Ignore unrelated warnings from MDAnalysis
9-
* Added argcomplete for tab completion
10-
* Updated docs
10+
* Added ``argcomplete`` for tab completion
11+
* Updated docs
1112

1213
v0.1.33 (2025-10-20)
1314
------------------------------------------

0 commit comments

Comments
 (0)