File tree 2 files changed +40
-1
lines changed
Filter options
2 files changed +40
-1
lines changed
Original file line number Diff line number Diff line change
1
+ name : 📦 Bump Workflow
2
+
3
+ on :
4
+ workflow_dispatch :
5
+ inputs :
6
+ new_version :
7
+ description : |
8
+ The version to update to (eg: 2.6.0 or 2.6.0-dev do not include `v`).
9
+ required : true
10
+ jobs :
11
+
12
+ apply-version-bump :
13
+ runs-on : ubuntu-latest
14
+ name : Apply Version Bump
15
+ steps :
16
+ - name : Checkout
17
+ uses : actions/checkout@v2
18
+
19
+ - name : Apply Bump
20
+ shell : bash
21
+ run : |
22
+ bash ./scripts/bump_version.sh ${{ github.event.inputs.new_version }}
23
+
24
+ - uses : actions/checkout@v3
25
+ - name : Create Pull Request
26
+ uses : peter-evans/create-pull-request@v4
27
+ with :
28
+ title : " Release Engineering: Version bump to ${{ github.event.inputs.new_version }}."
29
+ body : " This PR updates codeql-coding-standards to version ${{ github.event.inputs.new_version }}."
30
+ commit-message : " Version bump to ${{ github.event.inputs.new_version }}."
31
+ team-reviewers : github/codeql-coding-standards
32
+ delete-branch : true
33
+ branch : " codeql/version-bump-${{ github.event.inputs.new_version }}"
Original file line number Diff line number Diff line change @@ -45,7 +45,13 @@ python3 scripts/release/generate_release_notes.py > "$TEMP_DIR/release_notes_$VE
45
45
python3 scripts/release/create_supported_rules_list.py > " $TEMP_DIR /supported_rules_list_$VERSION .md"
46
46
python3 scripts/release/create_supported_rules_list.py --csv > " $TEMP_DIR /supported_rules_list_$VERSION .csv"
47
47
48
- gh release create " v$VERSION " -d --target " $BRANCH " -F " $TEMP_DIR /release_notes_$VERSION .md" -t " v$VERSION " " $TEMP_DIR /$CODE_SCANNING_VERSIONED_ARTIFACT_NAME " " $TEMP_DIR /supported_rules_list_$VERSION .md" " $TEMP_DIR /supported_rules_list_$VERSION .csv" docs/user_manual.md
48
+ echo " Copy Docs to Artifact Directory"
49
+ cp docs/user_manual.md " $TEMP_DIR /user_manual_$VERSION .md"
50
+
51
+ echo " Generating Checksums"
52
+ sha256sum $TEMP_DIR /* > " $TEMP_DIR /checksums.txt"
53
+
54
+ gh release create " v$VERSION " -d --target " $BRANCH " -F " $TEMP_DIR /release_notes_$VERSION .md" -t " v$VERSION " " $TEMP_DIR /$CODE_SCANNING_VERSIONED_ARTIFACT_NAME " " $TEMP_DIR /supported_rules_list_$VERSION .md" " $TEMP_DIR /checksums.txt" " $TEMP_DIR /supported_rules_list_$VERSION .csv" " $TEMP_DIR /user_manual_$VERSION .md"
49
55
50
56
curl \
51
57
-X POST \
You can’t perform that action at this time.
0 commit comments