Skip to content

Commit 6c60c55

Browse files
BenedekFarkasgithub-actions[bot]
authored andcommitted
Set GitHub Actions/Workflows to tag v2.0.0
1 parent ebbb7fe commit 6c60c55

39 files changed

+133
-133
lines changed

.github/actions/auto-merge-pull-request/action.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ runs:
2323
id: check-mergeability
2424
# Fork PR runs won't have permissions to remove labels, nor do we want to allow auto-merging them.
2525
if: github.event.pull_request.head.repo.fork == false
26-
uses: Lombiq/GitHub-Actions/.github/actions/check-pull-request-labels@dev
26+
uses: Lombiq/GitHub-Actions/.github/actions/check-pull-request-labels@v2.0.0
2727
with:
2828
label1: merge-if-checks-succeed
2929
label2: merge-and-resolve-jira-issue-if-checks-succeed
@@ -37,7 +37,7 @@ runs:
3737
3838
- name: Remove Label
3939
if: steps.check-mergeability.outputs.contains-label == 'true'
40-
uses: Lombiq/GitHub-Actions/.github/actions/add-remove-label@dev
40+
uses: Lombiq/GitHub-Actions/.github/actions/add-remove-label@v2.0.0
4141
with:
4242
token: ${{ env.GITHUB_TOKEN }}
4343
labels: merge-if-checks-succeed

.github/actions/auto-transition-jira-issue/action.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,15 @@ runs:
1515
1616
- name: Check if Should Done
1717
id: check-done
18-
uses: Lombiq/GitHub-Actions/.github/actions/check-pull-request-labels@dev
18+
uses: Lombiq/GitHub-Actions/.github/actions/check-pull-request-labels@v2.0.0
1919
with:
2020
label1: done-jira-issue-if-checks-succeed
2121
label2: dummy
2222

2323
- name: Check if Should Resolve
2424
id: check-resolve
2525
if: steps.check-done.outputs.contains-label == 'false'
26-
uses: Lombiq/GitHub-Actions/.github/actions/check-pull-request-labels@dev
26+
uses: Lombiq/GitHub-Actions/.github/actions/check-pull-request-labels@v2.0.0
2727
with:
2828
label1: resolve-jira-issue-if-checks-succeed
2929
label2: merge-and-resolve-jira-issue-if-checks-succeed
@@ -41,7 +41,7 @@ runs:
4141
Set-JiraIssueStatus @parameters
4242
4343
- name: Remove Label
44-
uses: Lombiq/GitHub-Actions/.github/actions/add-remove-label@dev
44+
uses: Lombiq/GitHub-Actions/.github/actions/add-remove-label@v2.0.0
4545
with:
4646
token: ${{ env.GITHUB_TOKEN }}
4747
labels: merge-and-resolve-jira-issue-if-checks-succeed, resolve-jira-issue-if-checks-succeed, done-jira-issue-if-checks-succeed

.github/actions/build-dotnet/action.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ runs:
211211
Write-Output ("Solution or project build took {0:0.###} seconds." -f ($endTime - $startTime).TotalSeconds)
212212
213213
- name: Upload MSBuild Binary Log
214-
uses: Lombiq/GitHub-Actions/.github/actions/upload-artifact@dev
214+
uses: Lombiq/GitHub-Actions/.github/actions/upload-artifact@v2.0.0
215215
if: (success() || failure()) && inputs.create-binary-log == 'true'
216216
with:
217217
name: build-binary-log-${{ steps.build.outputs.artifact-name-suffix }}.binlog

.github/actions/checkout/action.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ runs:
3636
(Resolve-Path '${{ github.action_path }}/../../../Scripts').Path >> $Env:GITHUB_PATH
3737
3838
- name: Set Checkout Token
39-
uses: Lombiq/GitHub-Actions/.github/actions/set-checkout-token@dev
39+
uses: Lombiq/GitHub-Actions/.github/actions/set-checkout-token@v2.0.0
4040
with:
4141
checkout-token: ${{ inputs.token }}
4242

.github/actions/markdown-lint/action.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ runs:
5757
Set-GitHubOutput 'artifact-path' $artifactFolder
5858
5959
- name: Upload files fixed by markdown-lint
60-
uses: Lombiq/GitHub-Actions/.github/actions/upload-artifact@dev
60+
uses: Lombiq/GitHub-Actions/.github/actions/upload-artifact@v2.0.0
6161
if: inputs.fix == 'true' && steps.markdown-lint-fix-files.outputs.has-fixes == 'true'
6262
with:
6363
name: markdown-lint-fixed-files

.github/actions/precompile-orchard1-app/action.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -55,15 +55,15 @@ runs:
5555
if: inputs.repository != ''
5656
# Using the official checkout action directly, because our wrapper action doesn't have most of the parameters we
5757
# need here. We only need those parameters for this action though.
58-
uses: Lombiq/GitHub-Actions/.github/actions/checkout@dev
58+
uses: Lombiq/GitHub-Actions/.github/actions/checkout@v2.0.0
5959
with:
6060
repository: ${{ inputs.repository }}
6161
ref: ${{ inputs.checkout-ref }}
6262
token: ${{ inputs.token }}
6363
path: ${{ inputs.checkout-path }}
6464

6565
- name: Enable Node corepack
66-
uses: Lombiq/GitHub-Actions/.github/actions/enable-corepack@dev
66+
uses: Lombiq/GitHub-Actions/.github/actions/enable-corepack@v2.0.0
6767

6868
# Calling nuget restore separately on the actual solution, because we're passing Orchard.proj to the msbuild action
6969
# instead to be able to call the Precompiled target on it.
@@ -72,7 +72,7 @@ runs:
7272
run: nuget restore ${{ inputs.checkout-path }}/${{ inputs.solution-path }}
7373

7474
- name: Publish Precompiled app
75-
uses: Lombiq/GitHub-Actions/.github/actions/msbuild@dev
75+
uses: Lombiq/GitHub-Actions/.github/actions/msbuild@v2.0.0
7676
with:
7777
directory: ${{ inputs.checkout-path }}
7878
verbosity: ${{ inputs.verbosity }}

.github/actions/publish-nuget/action.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -133,15 +133,15 @@ runs:
133133
run: Update-ManifestVersion './' '${{ steps.setup.outputs.publish-version }}'
134134

135135
- name: Enable Node corepack
136-
uses: Lombiq/GitHub-Actions/.github/actions/enable-corepack@dev
136+
uses: Lombiq/GitHub-Actions/.github/actions/enable-corepack@v2.0.0
137137

138138
- name: Generate nuspec file if needed
139139
if: hashFiles('ConvertTo-Nuspec.ps1')
140140
shell: pwsh
141141
run: ./ConvertTo-Nuspec.ps1 '${{ steps.setup.outputs.publish-version }}'
142142

143143
- name: Build
144-
uses: Lombiq/GitHub-Actions/.github/actions/build-dotnet@dev
144+
uses: Lombiq/GitHub-Actions/.github/actions/build-dotnet@v2.0.0
145145
# Notes on the configuration:
146146
# * -p:NuGetBuild=true is our property to load Lombiq dependencies from NuGet by switching project references
147147
# to package references.
@@ -226,14 +226,14 @@ runs:
226226
run: dotnet nuget push artifacts/*.nupkg --api-key $Env:API_KEY --source '${{ steps.setup.outputs.source-url }}' --skip-duplicate
227227

228228
- name: Publish Artifacts
229-
uses: Lombiq/GitHub-Actions/.github/actions/upload-artifact@dev
229+
uses: Lombiq/GitHub-Actions/.github/actions/upload-artifact@v2.0.0
230230
with:
231231
name: NuGet-Package
232232
path: artifacts
233233
retention-days: ${{ inputs.nuget-artifact-retention-days }}
234234

235235
- name: Create Release
236-
uses: Lombiq/GitHub-Actions/.github/actions/release-action@dev
236+
uses: Lombiq/GitHub-Actions/.github/actions/release-action@v2.0.0
237237
# This is to prevent creating releases when pushing tags for issue-specific pre-releases like
238238
# v4.3.1-alpha.osoe-86.
239239
if: "!contains(steps.setup.outputs.publish-version, '-')"

.github/actions/setup-sql-server/action.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ runs:
1515

1616
# Installs the SQL Server command-line tools if they're not present (necessary for Ubuntu 24.04-based runners).
1717
- name: Install sqlcmd
18-
uses: Lombiq/GitHub-Actions/.github/actions/install-sqlcmd@dev
18+
uses: Lombiq/GitHub-Actions/.github/actions/install-sqlcmd@v2.0.0
1919

2020
# Needs to be a separate step, otherwise the Chocolatey installation won't be visible.
2121
- name: Wait for SQL Server to start

.github/actions/spelling/action.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ runs:
130130
shell: pwsh
131131
run: |
132132
$defaultPrefixes = @{
133-
'lombiq-lgha' = 'https://raw.githubusercontent.com/Lombiq/GitHub-Actions/dev/.github/actions/spelling/'
133+
'lombiq-lgha' = 'https://raw.githubusercontent.com/Lombiq/GitHub-Actions/v2.0.0/.github/actions/spelling/'
134134
'cspell' = 'https://raw.githubusercontent.com/check-spelling/cspell-dicts/v20230509/dictionaries/'
135135
}
136136

.github/actions/test-dotnet/action.yml

+6-6
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ runs:
9292
Set-GitHubEnv 'Lombiq_Tests_UI__OrchardCoreUITestExecutorConfiguration__MaxParallelTests' ${{ inputs.ui-test-parallelism }}
9393
9494
- name: Install dotnet-dump
95-
uses: Lombiq/GitHub-Actions/.github/actions/install-dotnet-tool@dev
95+
uses: Lombiq/GitHub-Actions/.github/actions/install-dotnet-tool@v2.0.0
9696
with:
9797
name: dotnet-dump
9898
version: 8.0.510501
@@ -128,7 +128,7 @@ runs:
128128
# Under Windows this can fail with "ENOENT: no such file or directory" if the path is too long, see
129129
# https://github.com/actions/upload-artifact/issues/240.
130130
- name: Upload UI Testing Artifacts
131-
uses: Lombiq/GitHub-Actions/.github/actions/upload-artifact@dev
131+
uses: Lombiq/GitHub-Actions/.github/actions/upload-artifact@v2.0.0
132132
# We don't need additional conditions, because of the "if-no-files-found" setting.
133133
if: (success() || failure()) && steps.run-tests.outputs.test-count != 0
134134
with:
@@ -147,7 +147,7 @@ runs:
147147
# Under Windows this can fail with "ENOENT: no such file or directory" if the path is too long, see
148148
# https://github.com/actions/upload-artifact/issues/240.
149149
- name: Upload UI Testing Artifacts
150-
uses: Lombiq/GitHub-Actions/.github/actions/upload-artifact@dev
150+
uses: Lombiq/GitHub-Actions/.github/actions/upload-artifact@v2.0.0
151151
# We don't need additional conditions, because of the "if-no-files-found" setting.
152152
if: (success() || failure()) && steps.run-tests.outputs.test-count != 0
153153
with:
@@ -163,7 +163,7 @@ runs:
163163
run: Merge-BlameHangDumps -Directory "${{ inputs.build-directory }}" -Configuration "${{ inputs.test-configuration }}"
164164

165165
- name: Upload Blame Hang Dumps
166-
uses: Lombiq/GitHub-Actions/.github/actions/upload-artifact@dev
166+
uses: Lombiq/GitHub-Actions/.github/actions/upload-artifact@v2.0.0
167167
if: |
168168
failure() &&
169169
steps.run-tests.outputs.test-count != 0 &&
@@ -176,7 +176,7 @@ runs:
176176
retention-days: ${{ inputs.artifact-retention-days }}
177177

178178
- name: Upload Dotnet Test Hang Dumps
179-
uses: Lombiq/GitHub-Actions/.github/actions/upload-artifact@dev
179+
uses: Lombiq/GitHub-Actions/.github/actions/upload-artifact@v2.0.0
180180
if: (success() || failure()) && steps.run-tests.outputs.test-count != 0 && steps.run-tests.outputs.dotnet-test-hang-dump != 0
181181
with:
182182
name: dotnet-test-hang-dump-${{ steps.setup.outputs.artifact-name-suffix }}
@@ -185,7 +185,7 @@ runs:
185185
retention-days: ${{ inputs.artifact-retention-days }}
186186

187187
- name: Upload Diagnostic Logs
188-
uses: Lombiq/GitHub-Actions/.github/actions/upload-artifact@dev
188+
uses: Lombiq/GitHub-Actions/.github/actions/upload-artifact@v2.0.0
189189
# always() is needed because if the test process hangs and the workflow times out, we still need the diagnostic
190190
# logs. We don't need additional conditions, because of the "if-no-files-found" setting.
191191
if: always() && steps.run-tests.outputs.test-count != 0

.github/actions/verify-dotnet-consolidation/action.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ runs:
3939
(Resolve-Path '${{ github.action_path }}/../../../Scripts').Path >> $Env:GITHUB_PATH
4040
4141
- name: Install dotnet-consolidate
42-
uses: Lombiq/GitHub-Actions/.github/actions/install-dotnet-tool@dev
42+
uses: Lombiq/GitHub-Actions/.github/actions/install-dotnet-tool@v2.0.0
4343
with:
4444
name: dotnet-consolidate
4545
version: 4.2.0

.github/actions/workflow-telemetry/action.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ runs:
5959
using: composite
6060
steps:
6161
- name: Set Checkout Token
62-
uses: Lombiq/GitHub-Actions/.github/actions/set-checkout-token@dev
62+
uses: Lombiq/GitHub-Actions/.github/actions/set-checkout-token@v2.0.0
6363
with:
6464
checkout-token: ${{ inputs.github_token }}
6565

.github/workflows/build-and-test-dotnet.yml

+8-8
Original file line numberDiff line numberDiff line change
@@ -224,37 +224,37 @@ jobs:
224224
# This has to be the first step so it can collect data about the whole workflow run.
225225
- name: Collect Workflow Telemetry
226226
if: inputs.collect-workflow-telemetry == 'true'
227-
uses: Lombiq/GitHub-Actions/.github/actions/workflow-telemetry@dev
227+
uses: Lombiq/GitHub-Actions/.github/actions/workflow-telemetry@v2.0.0
228228
with:
229229
github_token: ${{ secrets.CHECKOUT_TOKEN }}
230230

231231
- name: Set Environment Variables
232-
uses: Lombiq/GitHub-Actions/.github/actions/set-environment-variables@dev
232+
uses: Lombiq/GitHub-Actions/.github/actions/set-environment-variables@v2.0.0
233233
env:
234234
ENVIRONMENT_VARIABLES_JSON: ${{ secrets.ENVIRONMENT_VARIABLES_JSON }}
235235

236236
- name: Checkout
237-
uses: Lombiq/GitHub-Actions/.github/actions/checkout@dev
237+
uses: Lombiq/GitHub-Actions/.github/actions/checkout@v2.0.0
238238
with:
239239
repository: ${{ inputs.repository }}
240240
ref: ${{ inputs.repository-ref }}
241241
token: ${{ secrets.CHECKOUT_TOKEN }}
242242

243243
- name: Set up .NET
244-
uses: Lombiq/GitHub-Actions/.github/actions/setup-dotnet@dev
244+
uses: Lombiq/GitHub-Actions/.github/actions/setup-dotnet@v2.0.0
245245
with:
246246
dotnet-version: ${{ inputs.dotnet-version }}
247247

248248
- name: Verify that .NET packages are consolidated
249249
if: ${{ inputs.verify-dotnet-consolidation }}
250-
uses: Lombiq/GitHub-Actions/.github/actions/verify-dotnet-consolidation@dev
250+
uses: Lombiq/GitHub-Actions/.github/actions/verify-dotnet-consolidation@v2.0.0
251251
with:
252252
directory: ${{ inputs.build-directory }}
253253
exclude-version-regex: ${{ inputs.dotnet-consolidation-exclude-version-regex }}
254254
exclude-project-path: ${{ inputs.dotnet-consolidation-exclude-project-path }}
255255

256256
- name: Build and Static Code Analysis
257-
uses: Lombiq/GitHub-Actions/.github/actions/build-dotnet@dev
257+
uses: Lombiq/GitHub-Actions/.github/actions/build-dotnet@v2.0.0
258258
with:
259259
directory: ${{ inputs.build-directory}}
260260
configuration: ${{ inputs.build-configuration}}
@@ -270,7 +270,7 @@ jobs:
270270

271271
- name: Tests
272272
if: inputs.test-disable == 'false'
273-
uses: Lombiq/GitHub-Actions/.github/actions/test-dotnet@dev
273+
uses: Lombiq/GitHub-Actions/.github/actions/test-dotnet@v2.0.0
274274
with:
275275
blame-hang-timeout: ${{ inputs.blame-hang-timeout }}
276276
build-directory: ${{ inputs.build-directory }}
@@ -284,6 +284,6 @@ jobs:
284284

285285
- name: Cancel Workflow on Failure
286286
if: failure() && inputs.cancel-workflow-on-failure == 'true'
287-
uses: Lombiq/GitHub-Actions/.github/actions/cancel-workflow@dev
287+
uses: Lombiq/GitHub-Actions/.github/actions/cancel-workflow@v2.0.0
288288
env:
289289
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/build-and-test-orchard-core.yml

+13-13
Original file line numberDiff line numberDiff line change
@@ -246,12 +246,12 @@ jobs:
246246
# This has to be the first step so it can collect data about the whole workflow run.
247247
- name: Collect Workflow Telemetry
248248
if: inputs.collect-workflow-telemetry == 'true'
249-
uses: Lombiq/GitHub-Actions/.github/actions/workflow-telemetry@dev
249+
uses: Lombiq/GitHub-Actions/.github/actions/workflow-telemetry@v2.0.0
250250
with:
251251
github_token: ${{ secrets.CHECKOUT_TOKEN }}
252252

253253
- name: Set Environment Variables
254-
uses: Lombiq/GitHub-Actions/.github/actions/set-environment-variables@dev
254+
uses: Lombiq/GitHub-Actions/.github/actions/set-environment-variables@v2.0.0
255255
env:
256256
ENVIRONMENT_VARIABLES_JSON: ${{ secrets.ENVIRONMENT_VARIABLES_JSON }}
257257

@@ -267,30 +267,30 @@ jobs:
267267
Write-Output $message
268268
269269
- name: Checkout
270-
uses: Lombiq/GitHub-Actions/.github/actions/checkout@dev
270+
uses: Lombiq/GitHub-Actions/.github/actions/checkout@v2.0.0
271271
with:
272272
repository: ${{ inputs.repository }}
273273
ref: ${{ inputs.repository-ref }}
274274
token: ${{ secrets.CHECKOUT_TOKEN }}
275275

276276
- name: Set up .NET
277-
uses: Lombiq/GitHub-Actions/.github/actions/setup-dotnet@dev
277+
uses: Lombiq/GitHub-Actions/.github/actions/setup-dotnet@v2.0.0
278278
with:
279279
dotnet-version: ${{ inputs.dotnet-version }}
280280

281281
- name: Verify that .NET packages are consolidated
282282
if: ${{ inputs.verify-dotnet-consolidation }}
283-
uses: Lombiq/GitHub-Actions/.github/actions/verify-dotnet-consolidation@dev
283+
uses: Lombiq/GitHub-Actions/.github/actions/verify-dotnet-consolidation@v2.0.0
284284
with:
285285
directory: ${{ inputs.build-directory }}
286286
exclude-version-regex: ${{ inputs.dotnet-consolidation-exclude-version-regex }}
287287
exclude-project-path: ${{ inputs.dotnet-consolidation-exclude-project-path }}
288288

289289
- name: Enable Node.js corepack
290-
uses: Lombiq/GitHub-Actions/.github/actions/enable-corepack@dev
290+
uses: Lombiq/GitHub-Actions/.github/actions/enable-corepack@v2.0.0
291291

292292
- name: Build and Static Code Analysis
293-
uses: Lombiq/GitHub-Actions/.github/actions/build-dotnet@dev
293+
uses: Lombiq/GitHub-Actions/.github/actions/build-dotnet@v2.0.0
294294
with:
295295
directory: ${{ inputs.build-directory }}
296296
configuration: ${{ inputs.build-configuration}}
@@ -306,25 +306,25 @@ jobs:
306306

307307
- name: Print configuration summary
308308
if: inputs.print-config-summary == 'true' && (success() || failure())
309-
uses: Lombiq/GitHub-Actions/.github/actions/print-config-summary@dev
309+
uses: Lombiq/GitHub-Actions/.github/actions/print-config-summary@v2.0.0
310310

311311
- name: Set up SQL Server
312312
if: inputs.set-up-sql-server == 'true'
313-
uses: Lombiq/GitHub-Actions/.github/actions/setup-sql-server@dev
313+
uses: Lombiq/GitHub-Actions/.github/actions/setup-sql-server@v2.0.0
314314

315315
- name: Set up Elasticsearch
316316
if: inputs.set-up-elasticsearch == 'true'
317-
uses: Lombiq/GitHub-Actions/.github/actions/setup-elasticsearch@dev
317+
uses: Lombiq/GitHub-Actions/.github/actions/setup-elasticsearch@v2.0.0
318318

319319
- name: Set up Azurite
320320
if: inputs.set-up-azurite == 'true'
321-
uses: Lombiq/GitHub-Actions/.github/actions/setup-azurite@dev
321+
uses: Lombiq/GitHub-Actions/.github/actions/setup-azurite@v2.0.0
322322
with:
323323
location: ${{ inputs.build-directory}}
324324

325325
- name: Tests
326326
if: inputs.test-disable == 'false'
327-
uses: Lombiq/GitHub-Actions/.github/actions/test-dotnet@dev
327+
uses: Lombiq/GitHub-Actions/.github/actions/test-dotnet@v2.0.0
328328
with:
329329
blame-hang-timeout: ${{ inputs.blame-hang-timeout }}
330330
build-directory: ${{ inputs.build-directory }}
@@ -339,6 +339,6 @@ jobs:
339339

340340
- name: Cancel Workflow on Failure
341341
if: failure() && inputs.cancel-workflow-on-failure == 'true'
342-
uses: Lombiq/GitHub-Actions/.github/actions/cancel-workflow@dev
342+
uses: Lombiq/GitHub-Actions/.github/actions/cancel-workflow@v2.0.0
343343
env:
344344
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)