mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-04-20 05:21:59 -04:00
Update github Auto-Release workflow to add an option to set the main branch version in task.h (#337)
Adding text into this new field updates the following macros in task.h in the main branch: tskKERNEL_VERSION_NUMBER (alphanumeric string) tskKERNEL_VERSION_MAJOR (numeric only) tskKERNEL_VERSION_MINOR (numeric only) tskKERNEL_VERSION_BUILD (numeric only)
This commit is contained in:
parent
3f7e75dcd5
commit
6425e584bd
11
.github/workflows/auto-release.yml
vendored
11
.github/workflows/auto-release.yml
vendored
|
@ -8,9 +8,13 @@ on:
|
||||||
required: true
|
required: true
|
||||||
default: 'HEAD'
|
default: 'HEAD'
|
||||||
version_number:
|
version_number:
|
||||||
description: 'Version Number (Ex. 10.4.0)'
|
description: 'Version Number (Ex. 10.4.4)'
|
||||||
required: true
|
required: true
|
||||||
default: '10.4.0'
|
default: '10.4.4'
|
||||||
|
main_br_version:
|
||||||
|
description: "Version String for task.h on main branch (leave empty to leave as-is)."
|
||||||
|
require: false
|
||||||
|
default: ''
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
release-packager:
|
release-packager:
|
||||||
|
@ -45,10 +49,9 @@ jobs:
|
||||||
# Configure repo for push
|
# Configure repo for push
|
||||||
git config --global user.name ${{ github.actor }}
|
git config --global user.name ${{ github.actor }}
|
||||||
git config --global user.email ${{ github.actor }}@users.noreply.github.com
|
git config --global user.email ${{ github.actor }}@users.noreply.github.com
|
||||||
|
|
||||||
# Install deps and run
|
# Install deps and run
|
||||||
pip install -r ./tools/.github/scripts/release-requirements.txt
|
pip install -r ./tools/.github/scripts/release-requirements.txt
|
||||||
./tools/.github/scripts/release.py FreeRTOS --kernel-repo-path=local_kernel --kernel-commit=${{ github.event.inputs.commit_id }} --new-kernel-version=${{ github.event.inputs.version_number }}
|
./tools/.github/scripts/release.py FreeRTOS --kernel-repo-path=local_kernel --kernel-commit=${{ github.event.inputs.commit_id }} --new-kernel-version=${{ github.event.inputs.version_number }} --new-kernel-main-br-version=${{ github.event.inputs.main_br_version }}
|
||||||
exit $?
|
exit $?
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
Loading…
Reference in a new issue