File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 44 push :
55 tags :
66 - " *"
7-
7+ workflow_dispatch :
8+ inputs :
9+ branch :
10+ description : ' Checkout branch'
11+ required : false
12+ default : ' main'
13+ tag :
14+ description : ' Checkout tag'
15+ required : false
816jobs :
917 build-omodsim :
1018 name : Build OpenModSim rpm package version '${{ github.ref_name }}' with Qt6
@@ -29,14 +37,16 @@ jobs:
2937 - name : Checkout repository
3038 uses : actions/checkout@v4
3139 with :
32- ref : ${{ github.ref_name }}
40+ ref : ${{ github.event.inputs.tag || github.event.inputs.branch || github. ref_name }}
3341
3442 - name : Extract version from CMakeLists.txt
3543 id : extract_version
3644 run : |
3745 FULL_VERSION=$(grep -oP 'VERSION\s+\K[0-9]+\.[0-9]+\.[0-9]+' omodsim/CMakeLists.txt)
3846
39- if [ "${GITHUB_REF_NAME}" = "dev" ]; then
47+ if [ ! -z "${{ github.event.inputs.tag }}" ]; then
48+ APP_VERSION="${{ github.event.inputs.tag }}"
49+ elif [ "${GITHUB_REF_NAME}" = "dev" ]; then
4050 MAJOR_MINOR=$(echo "$FULL_VERSION" | cut -d. -f1,2)
4151 APP_VERSION="${MAJOR_MINOR}~dev"
4252 else
You can’t perform that action at this time.
0 commit comments