mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2026-02-06 05:41:32 +00:00
Update version number in manifest.yml (#755)
* Add automation to update version number in manifest.yml * Make updater file executable
This commit is contained in:
17
.github/workflows/auto-release.yml
vendored
17
.github/workflows/auto-release.yml
vendored
@@ -63,6 +63,19 @@ jobs:
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
- name : Update version number in manifest.yml
|
||||
working-directory: ./local_kernel
|
||||
run: |
|
||||
./.github/scripts/manifest_updater.py -v ${{ github.event.inputs.version_number }}
|
||||
exit $?
|
||||
|
||||
- name : Commit version number change in manifest.yml
|
||||
working-directory: ./local_kernel
|
||||
run: |
|
||||
git add .
|
||||
git commit -m '[AUTO][RELEASE]: Update version number in manifest.yml'
|
||||
git push -u origin ${{ github.event.inputs.version_number }}
|
||||
|
||||
- name: Generate SBOM
|
||||
uses: FreeRTOS/CI-CD-Github-Actions/sbom-generator@main
|
||||
with:
|
||||
@@ -73,7 +86,7 @@ jobs:
|
||||
working-directory: ./local_kernel
|
||||
run: |
|
||||
git add .
|
||||
git commit -m 'Update SBOM'
|
||||
git commit -m '[AUTO][RELEASE]: Update SBOM'
|
||||
git push -u origin ${{ github.event.inputs.version_number }}
|
||||
echo "COMMIT_SHA_2=$(git rev-parse HEAD)" >> $GITHUB_ENV
|
||||
|
||||
@@ -81,7 +94,7 @@ jobs:
|
||||
run: |
|
||||
# Install deps and run
|
||||
pip install -r ./tools/.github/scripts/release-requirements.txt
|
||||
./tools/.github/scripts/release.py FreeRTOS --kernel-repo-path=local_kernel --kernel-commit=${{ env.COMMIT_SHA_2 }} --new-kernel-version=${{ github.event.inputs.version_number }} --new-kernel-main-br-version=${{ github.event.inputs.main_br_version }}
|
||||
./tools/.github/scripts/release.py ${{ github.repository_owner }} --kernel-repo-path=local_kernel --kernel-commit=${{ env.COMMIT_SHA_2 }} --new-kernel-version=${{ github.event.inputs.version_number }} --new-kernel-main-br-version=${{ github.event.inputs.main_br_version }}
|
||||
exit $?
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
Reference in New Issue
Block a user