Skip to content

Fix release action compatibility issues#145

Merged
archigup merged 1 commit intoFreeRTOS:mainfrom
archigup:main
Feb 26, 2026
Merged

Fix release action compatibility issues#145
archigup merged 1 commit intoFreeRTOS:mainfrom
archigup:main

Conversation

@archigup
Copy link
Member

Description

Three fixes for the release action:

  1. Changelog version check: The grep pattern was hardcoded to ^## $VERSION_NUMBER which only matches markdown headings. Some repos (e.g. FreeRTOS-Plus-TCP) use History.txt with a different format. Changed to match the version string anywhere in the file.

  2. Version update idempotency: If the repo already has the correct version numbers (e.g. version bump was done in a prior PR), git commit fails with "nothing to commit". Added || echo fallback so the workflow continues.

  3. Header version macro matching: The regex only matched [A-Z_]*LIBRARY_VERSION but FreeRTOS-Plus-TCP uses ipFR_TCP_VERSION_NUMBER (lowercase prefix, different suffix). Added a second sed for VERSION_NUMBER pattern and allowed mixed-case prefixes.

- Allow changelog version check to match any format, not just markdown headings
- Skip version bump PR when version numbers are already up to date
- Match both VERSION_NUMBER and LIBRARY_VERSION macros with mixed-case prefixes
@archigup archigup merged commit 416e051 into FreeRTOS:main Feb 26, 2026
18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants