File tree Expand file tree Collapse file tree 1 file changed +42
-0
lines changed Expand file tree Collapse file tree 1 file changed +42
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Manual Release Candidate
2
+
3
+ on :
4
+ workflow_call :
5
+ inputs :
6
+ branch :
7
+ description : ' Branch to produce Release Candidate from'
8
+ required : true
9
+ type : string
10
+ rc_number :
11
+ description : ' RC Number'
12
+ default : 0
13
+ required : true
14
+ type : number
15
+
16
+ jobs :
17
+ release :
18
+ runs-on : ubuntu-latest
19
+ concurrency : release
20
+ steps :
21
+ - name : Checkout code
22
+ uses : actions/checkout@v2
23
+ with :
24
+ fetch-depth : 0
25
+ - uses : actions/setup-python@v2
26
+ with :
27
+ python-version : 3.9
28
+ - name : Install dependencies
29
+ run : |
30
+ python -m pip install poetry --upgrade pip
31
+ poetry config virtualenvs.create false
32
+ poetry install
33
+ python -m pip install python-semantic-release
34
+ - name : Determine RC candidate version
35
+ run : |
36
+ RC_VERSION="$(python-semantic-release --noop --major print-version)rc${{ inputs.rc_number }})"
37
+ echo "RC Version will be: ${RC_VERSION}"
38
+ # - name: Python Semantic Release
39
+ # uses: relekang/python-semantic-release@master
40
+ # with:
41
+ # github_token: ${{ secrets.GITHUB_TOKEN }}
42
+ # pypi_token: ${{ secrets.PYPI_TOKEN }}
You can’t perform that action at this time.
0 commit comments