File tree Expand file tree Collapse file tree 2 files changed +22
-10
lines changed Expand file tree Collapse file tree 2 files changed +22
-10
lines changed Original file line number Diff line number Diff line change 8
8
paths :
9
9
- ' src/**'
10
10
workflow_call :
11
+ inputs :
12
+ # Required
13
+ run-id :
14
+ description : ' Path to the configuration file.'
15
+ type : string
16
+ required : true
17
+ run-number :
18
+ description : ' The run number of the parent workflow.'
19
+ type : string
20
+ required : true
11
21
outputs :
12
22
package-artifact-name :
13
23
description : " The assembly version."
@@ -34,15 +44,15 @@ jobs:
34
44
runs-on : ubuntu-latest
35
45
36
46
outputs :
37
- github-run-id : ${{ github.run_id }}
38
- github-run-number : ${{ github.run_number }}
47
+ github-run-id : ${{ inputs.run-id || github.run_id }}
48
+ github-run-number : ${{ inputs.run-number || github.run_number }}
39
49
40
50
steps :
41
51
- name : ' Global variables'
42
52
id : github
43
53
run : |
44
- echo "github-run-id:${{ github.run_id }}"
45
- echo "github-run-number:${{ github.run_number }}"
54
+ echo "github-run-id:${{ inputs.run-id || github.run_id }}"
55
+ echo "github-run-number:${{ inputs.run-number || github.run_number }}"
46
56
47
57
versioning :
48
58
name : Versioning with GitVersion
@@ -152,7 +162,6 @@ jobs:
152
162
uses : ./.github/workflows/publish-nuget-package.yml
153
163
needs : [global-variables, pack]
154
164
155
-
156
165
secrets : inherit
157
166
158
167
with :
Original file line number Diff line number Diff line change 28
28
echo "github-run-id:${{ github.run_id }}"
29
29
echo "github-run-number:${{ github.run_number }}"
30
30
31
+ build :
32
+ name : Build
33
+ uses : ./.github/workflows/build.yml
34
+
35
+ secrets : inherit
36
+
31
37
validate :
32
38
name : ' Validate'
39
+ needs : [build]
33
40
runs-on : ubuntu-latest
34
41
35
42
steps :
@@ -40,14 +47,10 @@ jobs:
40
47
shell : bash
41
48
run : dotnet format analyzers --severity warn --verify-no-changes
42
49
43
- build :
44
- name : Build
45
- uses : ./.github/workflows/build.yml
46
-
47
50
publish-package :
48
51
name : ' Publish'
49
52
uses : ./.github/workflows/publish-nuget-package.yml
50
- needs : [global-variables, build ]
53
+ needs : [global-variables, validate ]
51
54
52
55
secrets : inherit
53
56
You can’t perform that action at this time.
0 commit comments