@@ -2,16 +2,12 @@ name: Build
22
33on :
44 workflow_dispatch :
5- pull_request_target :
6- branches :
7- - ' preview/**'
8- - ' release/**'
95 push :
106 branches :
11- - ' develop/**'
12- - ' support/**'
7+ - ' **'
138 paths :
149 - ' src/**'
10+ - ' .github/**'
1511
1612permissions :
1713 actions : read
@@ -52,12 +48,26 @@ jobs:
5248 echo "is-preview:${{ startsWith(github.ref_name, 'preview') }}"
5349
5450 versioning :
55- name : ' Determine assembly version '
51+ name : ' Determine versions '
5652 needs : [workflow-variables]
57- uses : ./.github/workflows/determine-version.yml
58- with :
59- config-file-path : ' ./.gitversion/version.yml'
60- run-number : ${{ needs.workflow-variables.outputs.github-run-number }}
53+ runs-on : ubuntu-latest
54+
55+ outputs :
56+ friendly-version : ${{ env.friendly-version }}
57+ assembly-version : ${{ env.assembly-version }}
58+ assembly-informational-version : ${{ env.assembly-informational-version }}
59+ file-version : ${{ env.file-version }}
60+ package-version : ${{ env.package-version }}
61+
62+ steps :
63+ - name : ' Checkout ${{ github.head_ref || github.ref }}'
64+ uses : actions/checkout@v5
65+ - name : ' Determine versions'
66+ uses : ./.github/actions/determine-version
67+ id : determine-version
68+ with :
69+ config-file-path : ' ./.gitversion/version.yml'
70+ run-number : ${{ needs.workflow-variables.outputs.github-run-number }}
6171
6272 build :
6373 name : ' Compile source code'
7181
7282 steps :
7383 - name : ' Checkout ${{ github.head_ref || github.ref }}'
74- uses : actions/checkout@v4
84+ uses : actions/checkout@v5
7585
7686 - name : ' Compile source code'
7787 uses : ./.github/actions/compile
8898 runs-on : ubuntu-latest
8999 steps :
90100 - name : ' Checkout ${{ github.head_ref || github.ref }}'
91- uses : actions/checkout@v4
101+ uses : actions/checkout@v5
92102
93103 - name : ' Setup .NET'
94104 uses : actions/setup-dotnet@v4
@@ -134,7 +144,7 @@ jobs:
134144 package-artifact-name : ${{ env.package-artifact-name }}
135145 steps :
136146 - name : ' Checkout ${{ github.head_ref || github.ref }}'
137- uses : actions/checkout@v4
147+ uses : actions/checkout@v5
138148
139149 - name : Setup .NET
140150 uses : actions/setup-dotnet@v4
@@ -167,7 +177,7 @@ jobs:
167177 environment : ' Development'
168178 steps :
169179 - name : ' Checkout ${{ github.head_ref || github.ref }}'
170- uses : actions/checkout@v4
180+ uses : actions/checkout@v5
171181
172182 - name : Setup .NET
173183 uses : actions/setup-dotnet@v4
@@ -194,7 +204,7 @@ jobs:
194204 # runs-on: ${{ matrix.os }}
195205 # steps:
196206 # - name: 'Checkout ${{ github.head_ref || github.ref }}'
197- # uses: actions/checkout@v4
207+ # uses: actions/checkout@v5
198208 # - name: Install .NET SDK
199209 # uses: actions/setup-dotnet@v4
200210 # with:
@@ -227,7 +237,7 @@ jobs:
227237 runs-on : ubuntu-latest
228238 steps :
229239 - name : ' Checkout ${{ github.head_ref || github.ref }}'
230- uses : actions/checkout@v4
240+ uses : actions/checkout@v5
231241 - name : ' Generate assembly metadata'
232242 uses : ./.github/actions/docfx-metadata
233243 with :
@@ -240,4 +250,4 @@ jobs:
240250 with :
241251 artifact-name : ' assembly-metadata'
242252 commit-message : ' Updated docs for version ${{ env.friendly-version }}'
243- working-directory : ' ./api-reference/${{ env.friendly-version }}'
253+ working-directory : ' ./api-reference/${{ env.friendly-version }}'
0 commit comments