Skip to content

Commit 7024a37

Browse files
committed
Test run workflow manually
1 parent 9ac0b10 commit 7024a37

1 file changed

Lines changed: 13 additions & 3 deletions

File tree

.github/workflows/build-rpm-qt6-x86_64.yml

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,15 @@ on:
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
816
jobs:
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

0 commit comments

Comments
 (0)