Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 9 additions & 5 deletions .github/workflows/changelog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,12 @@ jobs:
python ${GITHUB_WORKSPACE}/.github/workflows/changelog.py

- name: Check if CHANGELOG.md actually changed
id: file_changed
run: |
git diff --exit-code ${GITHUB_WORKSPACE}/CHANGELOG.md || echo "changed=YES" >> $GITHUB_ENV
echo "File changed: ${{ env.changed }}"
file_changed=$(git diff --exit-code ${GITHUB_WORKSPACE}/CHANGELOG.md || echo "changed=TRUE")

echo "File changed: $file_changed"
echo "changed=$file_changed" >> $GITHUB_OUTPUT

- name: Set up Python 3.13
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5
Expand All @@ -74,16 +77,17 @@ jobs:
run: pip install pre-commit

- name: Run pre-commit checks
if: env.changed == 'YES'
if: steps.file_changed.outputs.changed == 'TRUE'
run: |
pre-commit run --all-files

- name: Commit and push changes
if: env.changed == 'YES'
if: steps.file_changed.outputs.changed == 'TRUE'
env:
GH_TOKEN: ${{ secrets.NF_CORE_BOT_AUTH_TOKEN }}
run: |
git config user.email "[email protected]"
git config user.name "nf-core-bot"
git config push.default upstream
git add ${GITHUB_WORKSPACE}/CHANGELOG.md
git status
git commit -m "[automated] Update CHANGELOG.md"
Expand Down
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
- Update pre-commit hook astral-sh/ruff-pre-commit to v0.12.0 ([#3627](https://github.com/nf-core/tools/pull/3627))
- Update zentered/bluesky-post-action action to v0.3.0 ([#3626](https://github.com/nf-core/tools/pull/3626))
- Update dependency textual to v3.5.0 ([#3636](https://github.com/nf-core/tools/pull/3636))
- Make changelog bot push to correct remote ([#3638](https://github.com/nf-core/tools/pull/3638))

## [v3.3.1 - Tungsten Tamarin Patch](https://github.com/nf-core/tools/releases/tag/3.3.1) - [2025-06-02]

Expand Down