@@ -5,19 +5,16 @@ name: Create Specification Document
55on :
66 workflow_dispatch :
77 inputs :
8- version :
9- description : ' Release version, e.g. X.Y.Z:'
10- required : true
11- type : string
128 revision_mark :
139 description : ' Set revision mark as Draft, Release or Stable:'
1410 required : true
1511 type : choice
1612 options :
17- - Draft
18- - Release
13+ - Development
1914 - Stable
20- default : Draft
15+ - Frozen
16+ - Ratified
17+ default : Development
2118 prerelease :
2219 description : Tag as a pre-release?
2320 required : false
@@ -44,14 +41,21 @@ jobs:
4441 with :
4542 submodules : recursive
4643
44+ - name : Get next version
45+ uses : reecetech/version-increment@2024.4.4
46+ id : version
47+ with :
48+ scheme : semver
49+ increment : patch
50+
4751 # Pull the latest RISC-V Docs container image
4852 - name : Pull Container
4953 run : docker pull riscvintl/riscv-docs-base-container-image:latest
5054
5155 # Override VERSION and REVMARK for manual workflow dispatch
5256 - name : Update environment variables
5357 run : |
54- echo "VERSION=v${{ github.event.inputs .version }}" >> "$GITHUB_ENV"
58+ echo "VERSION=v${{ steps.version.outputs .version }}" >> "$GITHUB_ENV"
5559 echo "REVMARK=${{ github.event.inputs.revision_mark }}" >> "$GITHUB_ENV"
5660 if : github.event_name == 'workflow_dispatch'
5761
7276 uses : softprops/action-gh-release@v1
7377 with :
7478 files : ${{ github.workspace }}/build/*.pdf
75- tag_name : v${{ github.event.inputs .version }}
76- name : Release ${{ github.event.inputs .version }}
79+ tag_name : v${{ steps.version.outputs .version }}
80+ name : Release ${{ steps.version.outputs .version }}
7781 draft : ${{ github.event.inputs.draft }}
7882 prerelease : ${{ github.event.inputs.prerelease }}
7983 env :
0 commit comments