Skip to content

Commit cedfe31

Browse files
committed
Refactor CI for forked repositories - Fix
1 parent 0e987e4 commit cedfe31

File tree

9 files changed

+33
-13
lines changed

9 files changed

+33
-13
lines changed

.github/actions/reports-group/attach-check-run-to-triggering-workflow-action/action.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ inputs:
1212
required: false
1313
fails-on-triggering-workflow-failure:
1414
description: If `true` and triggering workflow is not sucessfull (error, cancellation, etc), add the check and throw an error in order to stop ongoing job
15+
required: true
1516
default: 'false'
1617

1718
outputs:

.github/actions/reports-group/codacy-uploader-action/action.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ inputs:
1515
required: false
1616
follow-symbolic-links:
1717
description: Indicates whether to follow symbolic links when resolving `path`
18+
required: true
1819
default: 'false'
1920

2021
outputs:

.github/actions/reports-group/codecov-uploader-action/action.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ inputs:
4747
required: false
4848
follow-symbolic-links:
4949
description: Indicates whether to follow symbolic links when resolving `path`
50+
required: true
5051
default: 'false'
5152

5253
outputs:

.github/actions/reports-group/create-action/action.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,19 +7,24 @@ inputs:
77
description: Group name
88
required: true
99
format:
10-
description: "`clover`, `cobertura`, `lcov`, etc"
10+
description: |
11+
`clover`, `cobertura`, `lcov`, etc. Default to 'unknown'
1112
required: true
13+
default: 'unknown'
1214
files:
1315
description: Multiline list of reports attached to the group
1416
required: true
1517
flags:
1618
description: Multiline list of flags attached to the group
19+
required: true
1720
default: ''
1821
path:
1922
description: Root directory for the group directory (default to current directory)
23+
required: true
2024
default: '.'
2125
follow-symbolic-links:
2226
description: Indicates whether to follow symbolic links when resolving `files`
27+
required: true
2328
default: 'false'
2429

2530
outputs:

.github/actions/reports-group/fetch-workflow-metadata-action/action.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ inputs:
77
Weither to look for triggering workflow context or just current workflow context (default `true` !).
88
- True: In case current workflow event is `workflow_run`, the context of the workflow which **triggered** the current one will be returned. Else returns the current workflow context
99
- False: Return the context for the current workflow.
10+
required: true
1011
default: 'true'
1112

1213
outputs:

.github/actions/reports-group/find-action/action.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,19 @@ description: |
44
inputs:
55
path:
66
description: A group directory or a glob pattern in order to find group directories and merge their metadata
7-
required: false
7+
required: true
88
format:
9-
description: string, json
9+
description: |
10+
`string` (default) or `json`
11+
required: true
1012
default: 'string'
1113
glue-string:
1214
description: String used to concatenate values when 'string' format is used
15+
required: true
1316
default: ','
1417
follow-symbolic-links:
1518
description: Indicates whether to follow symbolic links when resolving `path`
19+
required: true
1620
default: 'false'
1721
outputs:
1822
list:

.github/actions/reports-group/load-metadata-action/action.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,15 @@ inputs:
77
required: true
88
format:
99
description: string (default) or json
10+
required: true
1011
default: 'string'
1112
glue-string:
1213
description: String used to concatenate values when 'string' format is used (default to comma)
14+
required: true
1315
default: ','
1416
follow-symbolic-links:
1517
description: Indicates whether to follow symbolic links when resolving `path`
18+
required: true
1619
default: 'false'
1720

1821
outputs:

.github/workflows/codacy-upload-from-artifacts.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,23 +4,25 @@ on:
44
workflow_call:
55
inputs:
66
artifacts-pattern:
7+
description: TODO
78
required: true
89
type: string
910
run-id:
1011
description: |
1112
The id of the workflow run where the artifacts were uploaded from (default to current run).
1213
In case artefacts have been uploadded from another run, this input must be filled with original workflow run id !
13-
required: false
14-
default: "${{ github.run_id }}"
14+
required: true
1515
type: string
16+
default: "${{ github.run_id }}"
1617
override-commit:
1718
description: |
1819
Force the commit SHA linked to the uploaded reports.
1920
Mostly useful for specific cases (e.g. `workflow_run` workflow).
20-
type: string
2121
required: false
22+
type: string
2223
follow-symbolic-links:
2324
description: Indicates whether to follow symbolic links when resolving groups path
25+
required: true
2426
type: boolean
2527
default: false
2628

.github/workflows/codecov-upload-from-artifacts.yml

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,63 +4,65 @@ on:
44
workflow_call:
55
inputs:
66
artifacts-pattern:
7+
description: TODO
78
required: true
89
type: string
910
run-id:
1011
description: |
1112
The id of the workflow run where the artifacts were uploaded from (default to current run).
1213
In case artefacts have been uploadded from another run, this input must be filled with original workflow run id !
13-
required: false
14-
default: "${{ github.run_id }}"
14+
required: true
1515
type: string
16+
default: "${{ github.run_id }}"
1617
override-commit:
1718
description: |
1819
Force the commit SHA linked to the uploaded reports.
1920
Mostly useful for specific cases (e.g. `workflow_run` workflow).
2021
2122
In case input is filled, `override-branch` input (as well as `override-pr` in case of `pull_request` event)
2223
should be filled too in order to keep consitency between values !
23-
type: string
2424
required: false
25+
type: string
2526
override-branch:
2627
description: |
2728
Force the branch linked to the uploaded reports.
2829
Mostly useful for specific cases (e.g. `workflow_run` workflow).
2930
3031
In case input is filled, `override-commit` input (as well as `override-pr` in case of `pull_request` event)
3132
should be filled too in order to keep consitency between values !
32-
type: string
3333
required: false
34+
type: string
3435
override-pr:
3536
description: |
3637
Force the PR linked to the uploaded reports.
3738
Mostly useful for specific cases (e.g. `workflow_run` workflow triggered by a `pull_request` workflow).
3839
3940
In case input is filled, `override-commit` and `override-branch` inputs should be filled too in order
4041
to keep consitency between values !
41-
type: string
4242
required: false
43+
type: string
4344
override-build:
4445
description: |
4546
Workflow run ID to link to the uploaded reports.
4647
Mostly useful for specific cases (e.g. `workflow_run` workflow).
4748
4849
When `run-id` input is provided, this input should most likely have the same value.
49-
type: string
5050
required: false
51+
type: string
5152
override-build-url:
5253
description: |
5354
Workflow run url to link to the uploaded reports.
5455
Usually something like `${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}/actions/runs/${GITHUB_RUN_ID}` (based on GHA environment variables).
5556
Mostly useful for specific cases (e.g. `workflow_run` workflow).
5657
5758
In case input is filled, `override-build` input most likely need to be filled too in order to keep consitency between values !
58-
type: string
5959
required: false
60+
type: string
6061
follow-symbolic-links:
6162
description: |
6263
Indicates whether to follow symbolic links when resolving glob path.
6364
When looking for group directory for instance.
65+
required: true
6466
type: boolean
6567
default: false
6668
secrets:

0 commit comments

Comments
 (0)