File tree Expand file tree Collapse file tree 3 files changed +39
-2
lines changed Expand file tree Collapse file tree 3 files changed +39
-2
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,12 @@ name: ci
3
3
# runs only after tox workflow finished successfully
4
4
on :
5
5
workflow_dispatch :
6
+ inputs :
7
+ ref :
8
+ type : string
9
+ description : ' Ref (SHA/branch) to run the workflow on'
10
+ required : true
11
+ default : ' main'
6
12
workflow_run :
7
13
workflows : [tox]
8
14
branches : [main]
13
19
server :
14
20
uses : ./.github/workflows/jira_server_ci.yml
15
21
if : ${{ github.event_name == 'workflow_dispatch' || github.event.workflow_run.conclusion == 'success' }}
22
+ with :
23
+ ref : ${{ github.event.inputs.ref || 'main' }}
16
24
17
25
cloud :
18
26
needs : server
22
30
CLOUD_ADMIN_TOKEN : ${{ secrets.CI_JIRA_CLOUD_ADMIN_TOKEN }}
23
31
CLOUD_USER : ${{ secrets.CI_JIRA_CLOUD_USER }}
24
32
CLOUD_USER_TOKEN : ${{ secrets.CI_JIRA_CLOUD_USER_TOKEN }}
33
+ with :
34
+ ref : ${{ github.event.inputs.ref || 'main' }}
25
35
26
36
# 'check' the only job that should be marked as required in
27
37
# repository config, so we do not need to change required jobs
Original file line number Diff line number Diff line change @@ -2,6 +2,12 @@ name: cloud
2
2
3
3
on :
4
4
workflow_call :
5
+ inputs :
6
+ ref :
7
+ type : string
8
+ description : ' Ref (SHA/branch) to run the workflow on'
9
+ required : true
10
+ default : ' main'
5
11
secrets :
6
12
CLOUD_ADMIN :
7
13
required : true
12
18
CLOUD_USER_TOKEN :
13
19
required : true
14
20
workflow_dispatch :
15
-
21
+ inputs :
22
+ ref :
23
+ type : string
24
+ description : ' Ref (SHA/branch) to run the workflow on'
25
+ required : true
26
+ default : ' main'
16
27
jobs :
17
28
test :
18
29
environment : cloud
27
38
28
39
steps :
29
40
- uses : actions/checkout@v4
41
+ with :
42
+ ref : ${{ github.event.inputs.ref }}
30
43
31
44
- name : Set up Python ${{ matrix.python-version }}
32
45
uses : actions/setup-python@v5
Original file line number Diff line number Diff line change @@ -2,8 +2,19 @@ name: server
2
2
3
3
on :
4
4
workflow_call :
5
+ inputs :
6
+ ref :
7
+ type : string
8
+ description : ' Ref (SHA/branch) to run the workflow on'
9
+ required : true
10
+ default : ' main'
5
11
workflow_dispatch :
6
-
12
+ inputs :
13
+ ref :
14
+ type : string
15
+ description : ' Ref (SHA/branch) to run the workflow on'
16
+ required : true
17
+ default : ' main'
7
18
jobs :
8
19
test :
9
20
name : py${{ matrix.python-version }}-jira${{ matrix.jira-version }}
16
27
17
28
steps :
18
29
- uses : actions/checkout@v4
30
+ with :
31
+ ref : ${{ github.event.inputs.ref }}
32
+
19
33
- name : Start Jira docker instance
20
34
run : docker run -dit -p 2990:2990 --name jira addono/jira-software-standalone --version ${{ matrix.jira-version }}
21
35
You can’t perform that action at this time.
0 commit comments