1 name: Kernel-Auto-Release
7 description: 'Commit ID'
11 description: 'Version Number (Ex. 10.4.4)'
15 description: "Version String for task.h on main branch (leave empty to leave as-is)."
21 name: Release Packager
22 runs-on: ubuntu-latest
26 uses: actions/setup-python@v2
28 python-version: 3.7.10
31 GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
33 # Currently FreeRTOS/.github/scripts houses the release script. Download it for upcoming usage
34 - name: Checkout FreeRTOS Release Tools
35 uses: actions/checkout@v2
37 repository: FreeRTOS/FreeRTOS
40 # Simpler git auth if we use checkout action and forward the repo to release script
41 - name: Checkout FreeRTOS Kernel
42 uses: actions/checkout@v2
47 - name: Configure git identity
49 git config --global user.name ${{ github.actor }}
50 git config --global user.email ${{ github.actor }}@users.noreply.github.com
52 - name: create a new branch that references commit id
53 working-directory: ./local_kernel
54 run: git checkout -b ${{ github.event.inputs.version_number }} ${{ github.event.inputs.commit_id }}
57 uses: FreeRTOS/CI-CD-Github-Actions/sbom-generator@main
59 repo_path: ./local_kernel
62 - name: commit SBOM file
63 working-directory: ./local_kernel
66 git commit -m 'Update SBOM'
67 git push -u origin ${{ github.event.inputs.version_number }}
68 echo "COMMIT_SHA=$(git rev-parse HEAD)" >> $GITHUB_ENV
72 # Install deps and run
73 pip install -r ./tools/.github/scripts/release-requirements.txt
74 ./tools/.github/scripts/release.py FreeRTOS --kernel-repo-path=local_kernel --kernel-commit=${{ env.COMMIT_SHA }} --new-kernel-version=${{ github.event.inputs.version_number }} --new-kernel-main-br-version=${{ github.event.inputs.main_br_version }}
77 GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}