1
- name : Release Notes Generator
1
+ name : Release Prep
2
2
3
3
on :
4
4
workflow_dispatch :
5
5
inputs :
6
6
branch :
7
- description : ' Branch to merge release notes into.'
7
+ description : ' Branch to merge release notes and code analysis into.'
8
8
required : true
9
9
default : ' main'
10
10
version :
15
15
' Date of the release. Must be in format YYYY-MM-DD.'
16
16
17
17
jobs :
18
- releasenotesgeneration :
18
+ preparerelease :
19
19
runs-on : ubuntu-latest
20
20
steps :
21
21
- uses : actions/checkout@v4
28
28
run : |
29
29
python -m pip install --upgrade pip
30
30
python -m pip install requests==2.31.0
31
+ python -m pip install bandit==1.7.7
32
+ python -m pip install .[test]
31
33
32
34
- name : Generate release notes
33
35
env :
@@ -37,16 +39,19 @@ jobs:
37
39
-v ${{ inputs.version }}
38
40
-d ${{ inputs.date }}
39
41
42
+ - name : Save static code analysis
43
+ run : bandit -r . -x ./tests,./scripts,./build -f txt -o static_code_analysis.txt --exit-zero
44
+
40
45
- name : Create pull request
41
46
id : cpr
42
47
uses : peter-evans/create-pull-request@v4
43
48
with :
44
49
token : ${{ secrets.GH_ACCESS_TOKEN }}
45
- commit-message : Release notes for v${{ inputs.version }}
50
+ commit-message : Prepare release for v${{ inputs.version }}
46
51
author : " github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>"
47
52
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
51
56
branch-suffix : short-commit-hash
52
57
base : ${{ inputs.branch }}
0 commit comments