1- name : Release Notes Generator
1+ name : Release Prep
22
33on :
44 workflow_dispatch :
55 inputs :
66 branch :
7- description : ' Branch to merge release notes into.'
7+ description : ' Branch to merge release notes and code analysis into.'
88 required : true
99 default : ' main'
1010 version :
1515 ' Date of the release. Must be in format YYYY-MM-DD.'
1616
1717jobs :
18- releasenotesgeneration :
18+ preparerelease :
1919 runs-on : ubuntu-latest
2020 steps :
2121 - uses : actions/checkout@v4
2828 run : |
2929 python -m pip install --upgrade pip
3030 python -m pip install requests==2.31.0
31+ python -m pip install bandit==1.7.7
32+ python -m pip install .[test]
3133
3234 - name : Generate release notes
3335 env :
@@ -37,16 +39,19 @@ jobs:
3739 -v ${{ inputs.version }}
3840 -d ${{ inputs.date }}
3941
42+ - name : Save static code analysis
43+ run : bandit -r . -x ./tests,./scripts,./build -f txt -o static_code_analysis.txt --exit-zero
44+
4045 - name : Create pull request
4146 id : cpr
4247 uses : peter-evans/create-pull-request@v4
4348 with :
4449 token : ${{ secrets.GH_ACCESS_TOKEN }}
45- commit-message : Release notes for v${{ inputs.version }}
50+ commit-message : Prepare release for v${{ inputs.version }}
4651 author : " github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>"
4752 committer : " github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>"
48- title : v${{ inputs.version }} Release Notes
49- body : " This is an auto-generated PR to update the release notes ."
50- branch : release-notes
53+ title : v${{ inputs.version }} Release Preparation
54+ body : " This is an auto-generated PR to prepare the release."
55+ branch : prepared-release
5156 branch-suffix : short-commit-hash
5257 base : ${{ inputs.branch }}
0 commit comments