From 2a863103295b16fef250b54d8aaf7704a4c4d632 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zolt=C3=A1n=20Leh=C3=B3czky?= Date: Fri, 9 Aug 2024 19:16:44 +0200 Subject: [PATCH 01/31] Pointing GHA to issue branch --- .github/workflows/build-and-test-dotnet.yml | 2 +- .github/workflows/build-and-test-orchard-core.yml | 2 +- .github/workflows/msbuild-and-test.yml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build-and-test-dotnet.yml b/.github/workflows/build-and-test-dotnet.yml index afd688e1b..447f39c03 100644 --- a/.github/workflows/build-and-test-dotnet.yml +++ b/.github/workflows/build-and-test-dotnet.yml @@ -246,7 +246,7 @@ jobs: - name: Tests if: inputs.test-disable == 'false' - uses: Lombiq/GitHub-Actions/.github/actions/test-dotnet@dev + uses: Lombiq/GitHub-Actions/.github/actions/test-dotnet@issue/LMBQ-178 with: blame-hang-timeout: ${{ inputs.blame-hang-timeout }} build-directory: ${{ inputs.build-directory }} diff --git a/.github/workflows/build-and-test-orchard-core.yml b/.github/workflows/build-and-test-orchard-core.yml index ba38b10f3..0acdded9e 100644 --- a/.github/workflows/build-and-test-orchard-core.yml +++ b/.github/workflows/build-and-test-orchard-core.yml @@ -300,7 +300,7 @@ jobs: - name: Tests if: inputs.test-disable == 'false' - uses: Lombiq/GitHub-Actions/.github/actions/test-dotnet@dev + uses: Lombiq/GitHub-Actions/.github/actions/test-dotnet@issue/LMBQ-178 with: blame-hang-timeout: ${{ inputs.blame-hang-timeout }} build-directory: ${{ inputs.build-directory }} diff --git a/.github/workflows/msbuild-and-test.yml b/.github/workflows/msbuild-and-test.yml index 01c2fdabb..b3f4ebd72 100644 --- a/.github/workflows/msbuild-and-test.yml +++ b/.github/workflows/msbuild-and-test.yml @@ -138,7 +138,7 @@ jobs: - name: Tests if: inputs.test-disable == 'false' - uses: Lombiq/GitHub-Actions/.github/actions/test-dotnet@dev + uses: Lombiq/GitHub-Actions/.github/actions/test-dotnet@issue/LMBQ-178 with: build-directory: ${{ inputs.build-directory }} dotnet-test-process-timeout: ${{ inputs.dotnet-test-process-timeout }} From df34f08155d62ef8cfae6c7e2befe494544e637d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zolt=C3=A1n=20Leh=C3=B3czky?= Date: Fri, 9 Aug 2024 19:52:08 +0200 Subject: [PATCH 02/31] Resolving test project path form the solution path --- .github/actions/test-dotnet/Invoke-SolutionTests.ps1 | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/actions/test-dotnet/Invoke-SolutionTests.ps1 b/.github/actions/test-dotnet/Invoke-SolutionTests.ps1 index 6119b89d3..1fddef8cf 100644 --- a/.github/actions/test-dotnet/Invoke-SolutionTests.ps1 +++ b/.github/actions/test-dotnet/Invoke-SolutionTests.ps1 @@ -67,12 +67,14 @@ $tests = dotnet sln $Solution list | "-p:SolutionDir=""$solutionDirectory""" ) + $absolutePath = Resolve-Path -Path (Join-Path -Path $solutionDirectory -ChildPath $PSItem) + # Without Out-String, Contains() below won't work for some reason. - $output = dotnet test @switches $PSItem 2>&1 | Out-String -Width 9999 + $output = dotnet test @switches $absolutePath 2>&1 | Out-String -Width 9999 if ($LASTEXITCODE -ne 0) { - Write-Error "::error::dotnet test failed for the project $PSItem with the following output:`n$output" + Write-Error "::error::dotnet test failed for the project $absolutePath with the following output:`n$output" exit 1 } From 2e023f81143f78fd6f67773da8f8fc37594ec5db Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zolt=C3=A1n=20Leh=C3=B3czky?= Date: Fri, 9 Aug 2024 19:59:25 +0200 Subject: [PATCH 03/31] Rename --- .github/actions/test-dotnet/Invoke-SolutionTests.ps1 | 10 +++++----- .github/actions/test-dotnet/Test-SolutionTests.ps1 | 2 +- .github/actions/test-dotnet/action.yml | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/actions/test-dotnet/Invoke-SolutionTests.ps1 b/.github/actions/test-dotnet/Invoke-SolutionTests.ps1 index 1fddef8cf..c1b30a1f9 100644 --- a/.github/actions/test-dotnet/Invoke-SolutionTests.ps1 +++ b/.github/actions/test-dotnet/Invoke-SolutionTests.ps1 @@ -1,5 +1,5 @@ param ( - [string] $Solution, + [string] $SolutionOrProject, [string] $Verbosity, [string] $Filter, [string] $Configuration, @@ -44,14 +44,14 @@ $connectionString = @( $Env:Lombiq_Tests_UI__SqlServerDatabaseConfiguration__ConnectionStringTemplate = $connectionString $Env:Lombiq_Tests_UI__BrowserConfiguration__Headless = 'true' -$solutionName = [System.IO.Path]::GetFileNameWithoutExtension($Solution) -$solutionDirectory = [System.IO.Path]::GetDirectoryName($Solution) +$solutionName = [System.IO.Path]::GetFileNameWithoutExtension($SolutionOrProject) +$solutionDirectory = [System.IO.Path]::GetDirectoryName($SolutionOrProject) -Write-Output "Running tests for the $Solution solution." +Write-Output "Running tests for the $SolutionOrProject solution." Write-Output 'Gathering test projects.' -$tests = dotnet sln $Solution list | +$tests = dotnet sln $SolutionOrProject list | Select-Object -Skip 2 | Select-String '\.Tests\.' | Select-String -NotMatch 'Lombiq.Tests.UI.csproj' | diff --git a/.github/actions/test-dotnet/Test-SolutionTests.ps1 b/.github/actions/test-dotnet/Test-SolutionTests.ps1 index 06f2f515a..a21719476 100644 --- a/.github/actions/test-dotnet/Test-SolutionTests.ps1 +++ b/.github/actions/test-dotnet/Test-SolutionTests.ps1 @@ -4,7 +4,7 @@ #> $switches = @{ - Solution = '.\Lombiq.OSOCE.sln' + SolutionOrProject = '.\Lombiq.OSOCE.sln' Verbosity = 'quiet' Filter = '' Configuration = 'Debug' diff --git a/.github/actions/test-dotnet/action.yml b/.github/actions/test-dotnet/action.yml index 925180881..453a94878 100644 --- a/.github/actions/test-dotnet/action.yml +++ b/.github/actions/test-dotnet/action.yml @@ -103,7 +103,7 @@ runs: working-directory: ${{ inputs.build-directory }} run: | $switches = @{ - Solution = Get-SolutionOrProjectPath ${{ inputs.solution-path }} + SolutionOrProject = Get-SolutionOrProjectPath ${{ inputs.solution-path }} Verbosity = "${{ inputs.test-verbosity }}" Filter = "${{ inputs.test-filter }}" Configuration = "${{ inputs.test-configuration }}" From b30791124f12d7e4a47bc4348dfaf2ee01994288 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zolt=C3=A1n=20Leh=C3=B3czky?= Date: Fri, 9 Aug 2024 20:10:34 +0200 Subject: [PATCH 04/31] Fixing path resolution for the actual test execution too --- .github/actions/test-dotnet/Invoke-SolutionTests.ps1 | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/.github/actions/test-dotnet/Invoke-SolutionTests.ps1 b/.github/actions/test-dotnet/Invoke-SolutionTests.ps1 index c1b30a1f9..34160aad7 100644 --- a/.github/actions/test-dotnet/Invoke-SolutionTests.ps1 +++ b/.github/actions/test-dotnet/Invoke-SolutionTests.ps1 @@ -56,7 +56,9 @@ $tests = dotnet sln $SolutionOrProject list | Select-String '\.Tests\.' | Select-String -NotMatch 'Lombiq.Tests.UI.csproj' | Select-String -NotMatch 'Lombiq.Tests.csproj' | - Where-Object { + ForEach-Object { + $absolutePath = Resolve-Path -Path (Join-Path -Path $solutionDirectory -ChildPath $PSItem) + # While the test projects are run individually, passing in the solution name and solution dir via the # conventional MSBuild properties allows build customization. $switches = @( @@ -67,8 +69,6 @@ $tests = dotnet sln $SolutionOrProject list | "-p:SolutionDir=""$solutionDirectory""" ) - $absolutePath = Resolve-Path -Path (Join-Path -Path $solutionDirectory -ChildPath $PSItem) - # Without Out-String, Contains() below won't work for some reason. $output = dotnet test @switches $absolutePath 2>&1 | Out-String -Width 9999 @@ -78,7 +78,10 @@ $tests = dotnet sln $SolutionOrProject list | exit 1 } - -not [string]::IsNullOrEmpty($output) -and $output.Contains('The following Tests are available') + if (-not [string]::IsNullOrEmpty($output) -and $output.Contains('The following Tests are available')) + { + $absolutePath + } } Set-GitHubOutput 'test-count' $tests.Length From 32d5ce7a78d5e40f1f44f02141cde1a83f58c9cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zolt=C3=A1n=20Leh=C3=B3czky?= Date: Fri, 9 Aug 2024 20:18:14 +0200 Subject: [PATCH 05/31] Allowing running tests from individual projects too --- .../test-dotnet/Invoke-SolutionTests.ps1 | 90 +++++++++++-------- 1 file changed, 51 insertions(+), 39 deletions(-) diff --git a/.github/actions/test-dotnet/Invoke-SolutionTests.ps1 b/.github/actions/test-dotnet/Invoke-SolutionTests.ps1 index 34160aad7..454051820 100644 --- a/.github/actions/test-dotnet/Invoke-SolutionTests.ps1 +++ b/.github/actions/test-dotnet/Invoke-SolutionTests.ps1 @@ -44,48 +44,60 @@ $connectionString = @( $Env:Lombiq_Tests_UI__SqlServerDatabaseConfiguration__ConnectionStringTemplate = $connectionString $Env:Lombiq_Tests_UI__BrowserConfiguration__Headless = 'true' -$solutionName = [System.IO.Path]::GetFileNameWithoutExtension($SolutionOrProject) -$solutionDirectory = [System.IO.Path]::GetDirectoryName($SolutionOrProject) - -Write-Output "Running tests for the $SolutionOrProject solution." - -Write-Output 'Gathering test projects.' - -$tests = dotnet sln $SolutionOrProject list | - Select-Object -Skip 2 | - Select-String '\.Tests\.' | - Select-String -NotMatch 'Lombiq.Tests.UI.csproj' | - Select-String -NotMatch 'Lombiq.Tests.csproj' | - ForEach-Object { - $absolutePath = Resolve-Path -Path (Join-Path -Path $solutionDirectory -ChildPath $PSItem) - - # While the test projects are run individually, passing in the solution name and solution dir via the - # conventional MSBuild properties allows build customization. - $switches = @( - "--configuration:$Configuration" - '--list-tests' - "--verbosity:$Verbosity" - "-p:SolutionName=""$solutionName""" - "-p:SolutionDir=""$solutionDirectory""" - ) - - # Without Out-String, Contains() below won't work for some reason. - $output = dotnet test @switches $absolutePath 2>&1 | Out-String -Width 9999 - - if ($LASTEXITCODE -ne 0) - { - Write-Error "::error::dotnet test failed for the project $absolutePath with the following output:`n$output" - exit 1 +if ($SolutionOrProject -like '*.sln') +{ + $solutionName = [System.IO.Path]::GetFileNameWithoutExtension($SolutionOrProject) + $solutionDirectory = [System.IO.Path]::GetDirectoryName($SolutionOrProject) + + Write-Output "Running tests for the $SolutionOrProject solution." + + Write-Output 'Gathering test projects.' + + $tests = dotnet sln $SolutionOrProject list | + Select-Object -Skip 2 | + Select-String '\.Tests\.' | + Select-String -NotMatch 'Lombiq.Tests.UI.csproj' | + Select-String -NotMatch 'Lombiq.Tests.csproj' | + ForEach-Object { + $absolutePath = Resolve-Path -Path (Join-Path -Path $solutionDirectory -ChildPath $PSItem) + + # While the test projects are run individually, passing in the solution name and solution dir via the + # conventional MSBuild properties allows build customization. + $switches = @( + "--configuration:$Configuration" + '--list-tests' + "--verbosity:$Verbosity" + "-p:SolutionName=""$solutionName""" + "-p:SolutionDir=""$solutionDirectory""" + ) + + # Without Out-String, Contains() below won't work for some reason. + $output = dotnet test @switches $absolutePath 2>&1 | Out-String -Width 9999 + + if ($LASTEXITCODE -ne 0) + { + Write-Error "::error::dotnet test failed for the project $absolutePath with the following output:`n$output" + exit 1 + } + + if (-not [string]::IsNullOrEmpty($output) -and $output.Contains('The following Tests are available')) + { + $absolutePath + } } +} +elseif ($SolutionOrProject -like '*.csproj') +{ + Write-Output "Running tests for the $SolutionOrProject project." + $tests = @($SolutionOrProject) +} +else +{ + Write-Error "The $SolutionOrProject is not a solution or project file." + exit 1 +} - if (-not [string]::IsNullOrEmpty($output) -and $output.Contains('The following Tests are available')) - { - $absolutePath - } - } -Set-GitHubOutput 'test-count' $tests.Length -Set-GitHubOutput 'dotnet-test-hang-dump' 0 Write-Output "Starting to execute tests from $($tests.Length) project(s)." From 23625e38f917ee1ecc5c9555000516094da40403 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zolt=C3=A1n=20Leh=C3=B3czky?= Date: Sat, 10 Aug 2024 18:44:20 +0200 Subject: [PATCH 06/31] PS syntax --- .../action.yml | 2 +- .github/actions/auto-merge-pull-request/action.yml | 2 +- .github/actions/auto-transition-jira-issue/action.yml | 4 ++-- .github/actions/build-dotnet/action.yml | 4 ++-- .github/actions/cancel-workflow/action.yml | 2 +- .github/actions/check-current-workflow-is-latest/action.yml | 2 +- .github/actions/check-merge-queue-adds/action.yml | 4 ++-- .github/actions/check-pull-request-labels/action.yml | 4 ++-- .github/actions/check-pull-request-reviews/action.yml | 4 ++-- .github/actions/checkout/action.yml | 2 +- .../create-jira-issues-for-community-activities/action.yml | 4 ++-- .github/actions/get-changed-files-from-git-diff/action.yml | 2 +- .github/actions/get-changed-gha-items/action.yml | 2 +- .github/actions/install-dotnet-tool/action.yml | 2 +- .github/actions/markdown-lint/action.yml | 2 +- .github/actions/msbuild/action.yml | 4 ++-- .github/actions/publish-nuget/action.yml | 4 ++-- .github/actions/set-checkout-token/action.yml | 2 +- .github/actions/set-gha-refs/action.yml | 2 +- .github/actions/setup-dotnet/action.yml | 2 +- .github/actions/setup-sql-server/action.yml | 2 +- .github/actions/spelling/action.yml | 4 ++-- .github/actions/test-dotnet/action.yml | 4 ++-- .../actions/update-github-issue-and-pull-request/action.yml | 4 ++-- .github/actions/verify-dotnet-consolidation/action.yml | 4 ++-- .github/actions/verify-gha-refs/action.yml | 2 +- .github/actions/verify-submodule-pull-request/action.yml | 4 ++-- 27 files changed, 40 insertions(+), 40 deletions(-) diff --git a/.github/actions/add-azure-application-insights-release-annotation/action.yml b/.github/actions/add-azure-application-insights-release-annotation/action.yml index 610844f25..c3717fee8 100644 --- a/.github/actions/add-azure-application-insights-release-annotation/action.yml +++ b/.github/actions/add-azure-application-insights-release-annotation/action.yml @@ -20,7 +20,7 @@ runs: - name: Setup Scripts shell: pwsh run: | - "${{ github.action_path }}" >> $Env:GITHUB_PATH + '${{ github.action_path }}' >> $Env:GITHUB_PATH - name: Add Azure Application Insights Release Annotation shell: pwsh diff --git a/.github/actions/auto-merge-pull-request/action.yml b/.github/actions/auto-merge-pull-request/action.yml index a0a32c0da..32df66213 100644 --- a/.github/actions/auto-merge-pull-request/action.yml +++ b/.github/actions/auto-merge-pull-request/action.yml @@ -17,7 +17,7 @@ runs: - name: Setup Scripts shell: pwsh run: | - (Resolve-Path "${{ github.action_path }}/../../../Scripts").Path >> $Env:GITHUB_PATH + (Resolve-Path '${{ github.action_path }}/../../../Scripts').Path >> $Env:GITHUB_PATH - name: Check Mergeability id: check-mergeability diff --git a/.github/actions/auto-transition-jira-issue/action.yml b/.github/actions/auto-transition-jira-issue/action.yml index fbd44abab..c953a2470 100644 --- a/.github/actions/auto-transition-jira-issue/action.yml +++ b/.github/actions/auto-transition-jira-issue/action.yml @@ -10,8 +10,8 @@ runs: - name: Setup Scripts shell: pwsh run: | - "${{ github.action_path }}" >> $Env:GITHUB_PATH - (Resolve-Path "${{ github.action_path }}/../../../Scripts").Path >> $Env:GITHUB_PATH + '${{ github.action_path }}' >> $Env:GITHUB_PATH + (Resolve-Path '${{ github.action_path }}/../../../Scripts').Path >> $Env:GITHUB_PATH - name: Check if Should Done id: check-done diff --git a/.github/actions/build-dotnet/action.yml b/.github/actions/build-dotnet/action.yml index 64b50fccc..f0bba77b8 100644 --- a/.github/actions/build-dotnet/action.yml +++ b/.github/actions/build-dotnet/action.yml @@ -91,8 +91,8 @@ runs: - name: Setup Scripts shell: pwsh run: | - "${{ github.action_path }}" >> $Env:GITHUB_PATH - (Resolve-Path "${{ github.action_path }}/../../../Scripts").Path >> $Env:GITHUB_PATH + '${{ github.action_path }}' >> $Env:GITHUB_PATH + (Resolve-Path '${{ github.action_path }}/../../../Scripts').Path >> $Env:GITHUB_PATH - name: Setup & Detect Cache Configuration id: detect-cache-configuration diff --git a/.github/actions/cancel-workflow/action.yml b/.github/actions/cancel-workflow/action.yml index fb0a0c508..b44608e8d 100644 --- a/.github/actions/cancel-workflow/action.yml +++ b/.github/actions/cancel-workflow/action.yml @@ -15,7 +15,7 @@ runs: - name: Setup Scripts shell: pwsh run: | - (Resolve-Path "${{ github.action_path }}/../../../Scripts").Path >> $Env:GITHUB_PATH + (Resolve-Path '${{ github.action_path }}/../../../Scripts').Path >> $Env:GITHUB_PATH - name: Cancel Workflow # Fork PRs won't have a token with write access to Actions, thus won't be able to cancel the workflow. diff --git a/.github/actions/check-current-workflow-is-latest/action.yml b/.github/actions/check-current-workflow-is-latest/action.yml index f171f06fe..0c19efdc0 100644 --- a/.github/actions/check-current-workflow-is-latest/action.yml +++ b/.github/actions/check-current-workflow-is-latest/action.yml @@ -20,7 +20,7 @@ runs: - name: Setup Scripts shell: pwsh run: | - (Resolve-Path "${{ github.action_path }}/../../../Scripts").Path >> $Env:GITHUB_PATH + (Resolve-Path '${{ github.action_path }}/../../../Scripts').Path >> $Env:GITHUB_PATH - name: Check Current Workflow Equals Latest shell: pwsh diff --git a/.github/actions/check-merge-queue-adds/action.yml b/.github/actions/check-merge-queue-adds/action.yml index 64fd187a0..7a91ba5a2 100644 --- a/.github/actions/check-merge-queue-adds/action.yml +++ b/.github/actions/check-merge-queue-adds/action.yml @@ -15,8 +15,8 @@ runs: - name: Setup Scripts shell: pwsh run: | - "${{ github.action_path }}" >> $Env:GITHUB_PATH - (Resolve-Path "${{ github.action_path }}/../../../Scripts").Path >> $Env:GITHUB_PATH + '${{ github.action_path }}' >> $Env:GITHUB_PATH + (Resolve-Path '${{ github.action_path }}/../../../Scripts').Path >> $Env:GITHUB_PATH - name: Check Merge Queue Adds id: check-merge-queue-adds diff --git a/.github/actions/check-pull-request-labels/action.yml b/.github/actions/check-pull-request-labels/action.yml index d60099b8c..2d6fa4cc7 100644 --- a/.github/actions/check-pull-request-labels/action.yml +++ b/.github/actions/check-pull-request-labels/action.yml @@ -23,8 +23,8 @@ runs: - name: Setup Scripts shell: pwsh run: | - "${{ github.action_path }}" >> $Env:GITHUB_PATH - (Resolve-Path "${{ github.action_path }}/../../../Scripts").Path >> $Env:GITHUB_PATH + '${{ github.action_path }}' >> $Env:GITHUB_PATH + (Resolve-Path '${{ github.action_path }}/../../../Scripts').Path >> $Env:GITHUB_PATH - name: Check Labels id: check-labels diff --git a/.github/actions/check-pull-request-reviews/action.yml b/.github/actions/check-pull-request-reviews/action.yml index 2499bfe52..465139e3a 100644 --- a/.github/actions/check-pull-request-reviews/action.yml +++ b/.github/actions/check-pull-request-reviews/action.yml @@ -14,8 +14,8 @@ runs: - name: Setup Scripts shell: pwsh run: | - "${{ github.action_path }}" >> $Env:GITHUB_PATH - (Resolve-Path "${{ github.action_path }}/../../../Scripts").Path >> $Env:GITHUB_PATH + '${{ github.action_path }}' >> $Env:GITHUB_PATH + (Resolve-Path '${{ github.action_path }}/../../../Scripts').Path >> $Env:GITHUB_PATH - name: Check Reviews id: check-reviews diff --git a/.github/actions/checkout/action.yml b/.github/actions/checkout/action.yml index 11415cfc0..5442f88f7 100644 --- a/.github/actions/checkout/action.yml +++ b/.github/actions/checkout/action.yml @@ -29,7 +29,7 @@ runs: - name: Setup Scripts shell: pwsh run: | - (Resolve-Path "${{ github.action_path }}/../../../Scripts").Path >> $Env:GITHUB_PATH + (Resolve-Path '${{ github.action_path }}/../../../Scripts').Path >> $Env:GITHUB_PATH - name: Set Checkout Token uses: Lombiq/GitHub-Actions/.github/actions/set-checkout-token@dev diff --git a/.github/actions/create-jira-issues-for-community-activities/action.yml b/.github/actions/create-jira-issues-for-community-activities/action.yml index 8c65c229f..1dc38feab 100644 --- a/.github/actions/create-jira-issues-for-community-activities/action.yml +++ b/.github/actions/create-jira-issues-for-community-activities/action.yml @@ -21,8 +21,8 @@ runs: - name: Setup Scripts shell: pwsh run: | - "${{ github.action_path }}" >> $Env:GITHUB_PATH - (Resolve-Path "${{ github.action_path }}/../../../Scripts").Path >> $Env:GITHUB_PATH + '${{ github.action_path }}' >> $Env:GITHUB_PATH + (Resolve-Path '${{ github.action_path }}/../../../Scripts').Path >> $Env:GITHUB_PATH # Don't do anything for pull requests that are already related to an issue, i.e. their titles start with an issue # key. diff --git a/.github/actions/get-changed-files-from-git-diff/action.yml b/.github/actions/get-changed-files-from-git-diff/action.yml index 2f96be8dd..98a0944ae 100644 --- a/.github/actions/get-changed-files-from-git-diff/action.yml +++ b/.github/actions/get-changed-files-from-git-diff/action.yml @@ -28,7 +28,7 @@ runs: - name: Setup shell: pwsh run: | - "${{ github.action_path }}" >> $Env:GITHUB_PATH + '${{ github.action_path }}' >> $Env:GITHUB_PATH - name: Git Diff id: git-diff diff --git a/.github/actions/get-changed-gha-items/action.yml b/.github/actions/get-changed-gha-items/action.yml index 2421b54d8..1f0abe923 100644 --- a/.github/actions/get-changed-gha-items/action.yml +++ b/.github/actions/get-changed-gha-items/action.yml @@ -19,7 +19,7 @@ runs: - name: Setup shell: pwsh run: | - "${{ github.action_path }}" >> $Env:GITHUB_PATH + '${{ github.action_path }}' >> $Env:GITHUB_PATH - name: Get GHA Items id: get-gha-items diff --git a/.github/actions/install-dotnet-tool/action.yml b/.github/actions/install-dotnet-tool/action.yml index 4726f883b..89aba5e7a 100644 --- a/.github/actions/install-dotnet-tool/action.yml +++ b/.github/actions/install-dotnet-tool/action.yml @@ -15,7 +15,7 @@ runs: - name: Setup Scripts shell: pwsh run: | - (Resolve-Path "${{ github.action_path }}/../../../Scripts").Path >> $Env:GITHUB_PATH + (Resolve-Path '${{ github.action_path }}/../../../Scripts').Path >> $Env:GITHUB_PATH - name: Install tool shell: pwsh run: | diff --git a/.github/actions/markdown-lint/action.yml b/.github/actions/markdown-lint/action.yml index ac5f315ba..36d1387a5 100644 --- a/.github/actions/markdown-lint/action.yml +++ b/.github/actions/markdown-lint/action.yml @@ -38,7 +38,7 @@ runs: - name: Setup Scripts shell: pwsh - run: (Resolve-Path "${{ github.action_path }}/../../../Scripts").Path >> $Env:GITHUB_PATH + run: (Resolve-Path '${{ github.action_path }}/../../../Scripts').Path >> $Env:GITHUB_PATH - name: Copy files updated by markdown-lint automatic fixes if: inputs.fix == 'true' diff --git a/.github/actions/msbuild/action.yml b/.github/actions/msbuild/action.yml index d4ecbc030..d784f7bd6 100644 --- a/.github/actions/msbuild/action.yml +++ b/.github/actions/msbuild/action.yml @@ -45,8 +45,8 @@ runs: - name: Setup Scripts shell: pwsh run: | - "${{ github.action_path }}" >> $Env:GITHUB_PATH - (Resolve-Path "${{ github.action_path }}/../../../Scripts").Path >> $Env:GITHUB_PATH + '${{ github.action_path }}' >> $Env:GITHUB_PATH + (Resolve-Path '${{ github.action_path }}/../../../Scripts').Path >> $Env:GITHUB_PATH - name: Add MSBuild to PATH # v2.0.0 diff --git a/.github/actions/publish-nuget/action.yml b/.github/actions/publish-nuget/action.yml index 364008d89..b2a29914d 100644 --- a/.github/actions/publish-nuget/action.yml +++ b/.github/actions/publish-nuget/action.yml @@ -46,8 +46,8 @@ runs: - name: Setup Scripts shell: pwsh run: | - "${{ github.action_path }}" >> $Env:GITHUB_PATH - (Resolve-Path "${{ github.action_path }}/../../../Scripts").Path >> $Env:GITHUB_PATH + '${{ github.action_path }}' >> $Env:GITHUB_PATH + (Resolve-Path '${{ github.action_path }}/../../../Scripts').Path >> $Env:GITHUB_PATH - name: Setup NuGet Version id: setup diff --git a/.github/actions/set-checkout-token/action.yml b/.github/actions/set-checkout-token/action.yml index d39bb2205..caa3df842 100644 --- a/.github/actions/set-checkout-token/action.yml +++ b/.github/actions/set-checkout-token/action.yml @@ -20,7 +20,7 @@ runs: - name: Setup Scripts shell: pwsh run: | - (Resolve-Path "${{ github.action_path }}/../../../Scripts").Path >> $Env:GITHUB_PATH + (Resolve-Path '${{ github.action_path }}/../../../Scripts').Path >> $Env:GITHUB_PATH - name: Set Checkout Token shell: pwsh diff --git a/.github/actions/set-gha-refs/action.yml b/.github/actions/set-gha-refs/action.yml index 97bb1e02b..1f62f1f6c 100644 --- a/.github/actions/set-gha-refs/action.yml +++ b/.github/actions/set-gha-refs/action.yml @@ -40,7 +40,7 @@ runs: - name: Setup shell: pwsh run: | - "${{ github.action_path }}" >> $Env:GITHUB_PATH + '${{ github.action_path }}' >> $Env:GITHUB_PATH - name: Set References shell: pwsh diff --git a/.github/actions/setup-dotnet/action.yml b/.github/actions/setup-dotnet/action.yml index 2af11ca8a..742eed9a6 100644 --- a/.github/actions/setup-dotnet/action.yml +++ b/.github/actions/setup-dotnet/action.yml @@ -13,7 +13,7 @@ runs: - name: Setup Scripts shell: pwsh run: | - (Resolve-Path "${{ github.action_path }}/../../../Scripts").Path >> $Env:GITHUB_PATH + (Resolve-Path '${{ github.action_path }}/../../../Scripts').Path >> $Env:GITHUB_PATH - name: Set Environment Variables shell: pwsh diff --git a/.github/actions/setup-sql-server/action.yml b/.github/actions/setup-sql-server/action.yml index e021ffe0c..f0215c82f 100644 --- a/.github/actions/setup-sql-server/action.yml +++ b/.github/actions/setup-sql-server/action.yml @@ -7,7 +7,7 @@ runs: - name: Setup shell: pwsh run: | - "${{ github.action_path }}" >> $Env:GITHUB_PATH + '${{ github.action_path }}' >> $Env:GITHUB_PATH - name: Set up SQL Server shell: pwsh diff --git a/.github/actions/spelling/action.yml b/.github/actions/spelling/action.yml index d8c54fea0..23c6c4c06 100644 --- a/.github/actions/spelling/action.yml +++ b/.github/actions/spelling/action.yml @@ -65,8 +65,8 @@ runs: - name: Setup Scripts shell: pwsh run: | - "${{ github.action_path }}" >> $Env:GITHUB_PATH - (Resolve-Path "${{ github.action_path }}/../../../Scripts").Path >> $Env:GITHUB_PATH + '${{ github.action_path }}' >> $Env:GITHUB_PATH + (Resolve-Path '${{ github.action_path }}/../../../Scripts').Path >> $Env:GITHUB_PATH # If the configuration path doesn't exist in the workspace, then it means that the workspace repository doesn't have # its own spell-checking configuration. In that case we don't need to copy anything, because the configuration files diff --git a/.github/actions/test-dotnet/action.yml b/.github/actions/test-dotnet/action.yml index 453a94878..403a6bedc 100644 --- a/.github/actions/test-dotnet/action.yml +++ b/.github/actions/test-dotnet/action.yml @@ -72,8 +72,8 @@ runs: - name: Setup Scripts shell: pwsh run: | - "${{ github.action_path }}" >> $Env:GITHUB_PATH - (Resolve-Path "${{ github.action_path }}/../../../Scripts").Path >> $Env:GITHUB_PATH + '${{ github.action_path }}' >> $Env:GITHUB_PATH + (Resolve-Path '${{ github.action_path }}/../../../Scripts').Path >> $Env:GITHUB_PATH - name: Setup & Set Test Parallelization id: setup diff --git a/.github/actions/update-github-issue-and-pull-request/action.yml b/.github/actions/update-github-issue-and-pull-request/action.yml index 8df22f4ff..8dac50d76 100644 --- a/.github/actions/update-github-issue-and-pull-request/action.yml +++ b/.github/actions/update-github-issue-and-pull-request/action.yml @@ -9,8 +9,8 @@ runs: - name: Setup Scripts shell: pwsh run: | - "${{ github.action_path }}" >> $Env:GITHUB_PATH - (Resolve-Path "${{ github.action_path }}/../../../Scripts").Path >> $Env:GITHUB_PATH + '${{ github.action_path }}' >> $Env:GITHUB_PATH + (Resolve-Path '${{ github.action_path }}/../../../Scripts').Path >> $Env:GITHUB_PATH - name: Add Jira Issue Code to Pull Request shell: pwsh diff --git a/.github/actions/verify-dotnet-consolidation/action.yml b/.github/actions/verify-dotnet-consolidation/action.yml index ced0bc81b..65f8a788b 100644 --- a/.github/actions/verify-dotnet-consolidation/action.yml +++ b/.github/actions/verify-dotnet-consolidation/action.yml @@ -35,8 +35,8 @@ runs: - name: Setup Scripts shell: pwsh run: | - "${{ github.action_path }}" >> $Env:GITHUB_PATH - (Resolve-Path "${{ github.action_path }}/../../../Scripts").Path >> $Env:GITHUB_PATH + '${{ github.action_path }}' >> $Env:GITHUB_PATH + (Resolve-Path '${{ github.action_path }}/../../../Scripts').Path >> $Env:GITHUB_PATH - name: Install dotnet-consolidate uses: Lombiq/GitHub-Actions/.github/actions/install-dotnet-tool@dev diff --git a/.github/actions/verify-gha-refs/action.yml b/.github/actions/verify-gha-refs/action.yml index 280eee87a..5648ccb40 100644 --- a/.github/actions/verify-gha-refs/action.yml +++ b/.github/actions/verify-gha-refs/action.yml @@ -32,7 +32,7 @@ runs: - name: Setup shell: pwsh run: | - "${{ github.action_path }}" >> $Env:GITHUB_PATH + '${{ github.action_path }}' >> $Env:GITHUB_PATH - name: Check References id: check-references diff --git a/.github/actions/verify-submodule-pull-request/action.yml b/.github/actions/verify-submodule-pull-request/action.yml index 67ab1c683..f6c37ae76 100644 --- a/.github/actions/verify-submodule-pull-request/action.yml +++ b/.github/actions/verify-submodule-pull-request/action.yml @@ -18,8 +18,8 @@ runs: - name: Setup Scripts shell: pwsh run: | - "${{ github.action_path }}" >> $Env:GITHUB_PATH - (Resolve-Path "${{ github.action_path }}/../../../Scripts").Path >> $Env:GITHUB_PATH + '${{ github.action_path }}' >> $Env:GITHUB_PATH + (Resolve-Path '${{ github.action_path }}/../../../Scripts').Path >> $Env:GITHUB_PATH New-Item -ItemType File -Force $Profile | Out-Null Get-Content -Raw ${{ github.action_path }}/functions.ps1 >> $Profile From 453cc15f9d3620200dc06b0d16317540e85dc504 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zolt=C3=A1n=20Leh=C3=B3czky?= Date: Sat, 10 Aug 2024 18:47:43 +0200 Subject: [PATCH 07/31] Pointing GHA to issue branch --- .../auto-merge-pull-request/action.yml | 4 ++-- .../auto-transition-jira-issue/action.yml | 6 ++--- .github/actions/build-dotnet/action.yml | 2 +- .github/actions/checkout/action.yml | 2 +- .github/actions/markdown-lint/action.yml | 2 +- .../precompile-orchard1-app/action.yml | 6 ++--- .github/actions/publish-nuget/action.yml | 8 +++---- .github/actions/spelling/action.yml | 4 ++-- .github/actions/test-dotnet/action.yml | 10 ++++----- .../verify-dotnet-consolidation/action.yml | 2 +- .github/actions/workflow-telemetry/action.yml | 2 +- .github/workflows/build-and-test-dotnet.yml | 12 +++++----- .../workflows/build-and-test-orchard-core.yml | 22 +++++++++---------- .github/workflows/build-dotnet.yml | 10 ++++----- ...-for-community-activities-in-this-repo.yml | 2 +- ...e-jira-issues-for-community-activities.yml | 2 +- .../deploy-orchard1-to-azure-app-service.yml | 14 ++++++------ .../workflows/deploy-to-azure-app-service.yml | 16 +++++++------- .github/workflows/markdown-lint-this-repo.yml | 2 +- .github/workflows/markdown-lint.yml | 6 ++--- .github/workflows/msbuild-and-test.yml | 12 +++++----- .../post-pull-request-checks-automation.yml | 8 +++---- .github/workflows/publish-nuget.yml | 8 +++---- .github/workflows/reset-azure-environment.yml | 8 +++---- .github/workflows/spelling-this-repo.yml | 2 +- .github/workflows/spelling.yml | 10 ++++----- .../workflows/swap-azure-web-app-slots.yml | 8 +++---- .../swap-orchard1-azure-web-app-slots.yml | 8 +++---- .github/workflows/tag-version-this-repo.yml | 2 +- .github/workflows/tag-version.yml | 6 ++--- .github/workflows/test-analysis-failure.yml | 10 ++++----- .github/workflows/validate-pull-request.yml | 4 ++-- .../validate-submodule-pull-request.yml | 4 ++-- .github/workflows/validate-this-gha-refs.yml | 16 +++++++------- .../workflows/validate-this-pull-request.yml | 2 +- .github/workflows/yaml-lint-this-repo.yml | 2 +- .github/workflows/yaml-lint.yml | 6 ++--- 37 files changed, 125 insertions(+), 125 deletions(-) diff --git a/.github/actions/auto-merge-pull-request/action.yml b/.github/actions/auto-merge-pull-request/action.yml index 32df66213..74225205e 100644 --- a/.github/actions/auto-merge-pull-request/action.yml +++ b/.github/actions/auto-merge-pull-request/action.yml @@ -23,7 +23,7 @@ runs: id: check-mergeability # Fork PR runs won't have permissions to remove labels, nor do we want to allow auto-merging them. if: github.event.pull_request.head.repo.fork == false - uses: Lombiq/GitHub-Actions/.github/actions/check-pull-request-labels@dev + uses: Lombiq/GitHub-Actions/.github/actions/check-pull-request-labels@issue/LMBQ-178 with: label1: merge-if-checks-succeed label2: merge-and-resolve-jira-issue-if-checks-succeed @@ -37,7 +37,7 @@ runs: - name: Remove Label if: steps.check-mergeability.outputs.contains-label == 'true' - uses: Lombiq/GitHub-Actions/.github/actions/add-remove-label@dev + uses: Lombiq/GitHub-Actions/.github/actions/add-remove-label@issue/LMBQ-178 with: token: ${{ env.GITHUB_TOKEN }} labels: merge-if-checks-succeed diff --git a/.github/actions/auto-transition-jira-issue/action.yml b/.github/actions/auto-transition-jira-issue/action.yml index c953a2470..5284c4e94 100644 --- a/.github/actions/auto-transition-jira-issue/action.yml +++ b/.github/actions/auto-transition-jira-issue/action.yml @@ -15,7 +15,7 @@ runs: - name: Check if Should Done id: check-done - uses: Lombiq/GitHub-Actions/.github/actions/check-pull-request-labels@dev + uses: Lombiq/GitHub-Actions/.github/actions/check-pull-request-labels@issue/LMBQ-178 with: label1: done-jira-issue-if-checks-succeed label2: dummy @@ -23,7 +23,7 @@ runs: - name: Check if Should Resolve id: check-resolve if: steps.check-done.outputs.contains-label == 'false' - uses: Lombiq/GitHub-Actions/.github/actions/check-pull-request-labels@dev + uses: Lombiq/GitHub-Actions/.github/actions/check-pull-request-labels@issue/LMBQ-178 with: label1: resolve-jira-issue-if-checks-succeed label2: merge-and-resolve-jira-issue-if-checks-succeed @@ -41,7 +41,7 @@ runs: Set-JiraIssueStatus @parameters - name: Remove Label - uses: Lombiq/GitHub-Actions/.github/actions/add-remove-label@dev + uses: Lombiq/GitHub-Actions/.github/actions/add-remove-label@issue/LMBQ-178 with: token: ${{ env.GITHUB_TOKEN }} labels: merge-and-resolve-jira-issue-if-checks-succeed, resolve-jira-issue-if-checks-succeed, done-jira-issue-if-checks-succeed diff --git a/.github/actions/build-dotnet/action.yml b/.github/actions/build-dotnet/action.yml index f0bba77b8..24185492d 100644 --- a/.github/actions/build-dotnet/action.yml +++ b/.github/actions/build-dotnet/action.yml @@ -211,7 +211,7 @@ runs: Write-Output ("Solution or project build took {0:0.###} seconds." -f ($endTime - $startTime).TotalSeconds) - name: Upload MSBuild Binary Log - uses: Lombiq/GitHub-Actions/.github/actions/upload-artifact@dev + uses: Lombiq/GitHub-Actions/.github/actions/upload-artifact@issue/LMBQ-178 if: (success() || failure()) && inputs.create-binary-log == 'true' with: name: build-binary-log-${{ steps.build.outputs.artifact-name-suffix }}.binlog diff --git a/.github/actions/checkout/action.yml b/.github/actions/checkout/action.yml index 5442f88f7..44501a11a 100644 --- a/.github/actions/checkout/action.yml +++ b/.github/actions/checkout/action.yml @@ -32,7 +32,7 @@ runs: (Resolve-Path '${{ github.action_path }}/../../../Scripts').Path >> $Env:GITHUB_PATH - name: Set Checkout Token - uses: Lombiq/GitHub-Actions/.github/actions/set-checkout-token@dev + uses: Lombiq/GitHub-Actions/.github/actions/set-checkout-token@issue/LMBQ-178 with: checkout-token: ${{ inputs.token }} diff --git a/.github/actions/markdown-lint/action.yml b/.github/actions/markdown-lint/action.yml index 36d1387a5..01f290dfc 100644 --- a/.github/actions/markdown-lint/action.yml +++ b/.github/actions/markdown-lint/action.yml @@ -57,7 +57,7 @@ runs: Set-GitHubOutput 'artifact-path' $artifactFolder - name: Upload files fixed by markdown-lint - uses: Lombiq/GitHub-Actions/.github/actions/upload-artifact@dev + uses: Lombiq/GitHub-Actions/.github/actions/upload-artifact@issue/LMBQ-178 if: inputs.fix == 'true' && steps.markdown-lint-fix-files.outputs.has-fixes == 'true' with: name: markdown-lint-fixed-files diff --git a/.github/actions/precompile-orchard1-app/action.yml b/.github/actions/precompile-orchard1-app/action.yml index 34430f384..2c11b27a4 100644 --- a/.github/actions/precompile-orchard1-app/action.yml +++ b/.github/actions/precompile-orchard1-app/action.yml @@ -55,7 +55,7 @@ runs: if: inputs.repository != '' # Using the official checkout action directly, because our wrapper action doesn't have most of the parameters we # need here. We only need those parameters for this action though. - uses: Lombiq/GitHub-Actions/.github/actions/checkout@dev + uses: Lombiq/GitHub-Actions/.github/actions/checkout@issue/LMBQ-178 with: repository: ${{ inputs.repository }} ref: ${{ inputs.checkout-ref }} @@ -63,7 +63,7 @@ runs: path: ${{ inputs.checkout-path }} - name: Enable Node corepack - uses: Lombiq/GitHub-Actions/.github/actions/enable-corepack@dev + uses: Lombiq/GitHub-Actions/.github/actions/enable-corepack@issue/LMBQ-178 # Calling nuget restore separately on the actual solution, because we're passing Orchard.proj to the msbuild action # instead to be able to call the Precompiled target on it. @@ -72,7 +72,7 @@ runs: run: nuget restore ${{ inputs.checkout-path }}/${{ inputs.solution-path }} - name: Publish Precompiled app - uses: Lombiq/GitHub-Actions/.github/actions/msbuild@dev + uses: Lombiq/GitHub-Actions/.github/actions/msbuild@issue/LMBQ-178 with: directory: ${{ inputs.checkout-path }} verbosity: ${{ inputs.verbosity }} diff --git a/.github/actions/publish-nuget/action.yml b/.github/actions/publish-nuget/action.yml index b2a29914d..3c8494fc6 100644 --- a/.github/actions/publish-nuget/action.yml +++ b/.github/actions/publish-nuget/action.yml @@ -133,7 +133,7 @@ runs: run: Update-ManifestVersion './' '${{ steps.setup.outputs.publish-version }}' - name: Enable Node corepack - uses: Lombiq/GitHub-Actions/.github/actions/enable-corepack@dev + uses: Lombiq/GitHub-Actions/.github/actions/enable-corepack@issue/LMBQ-178 - name: Generate nuspec file if needed if: hashFiles('ConvertTo-Nuspec.ps1') @@ -141,7 +141,7 @@ runs: run: ./ConvertTo-Nuspec.ps1 '${{ steps.setup.outputs.publish-version }}' - name: Build - uses: Lombiq/GitHub-Actions/.github/actions/build-dotnet@dev + uses: Lombiq/GitHub-Actions/.github/actions/build-dotnet@issue/LMBQ-178 # Notes on the configuration: # * -p:NuGetBuild=true is our property to load Lombiq dependencies from NuGet by switching project references # to package references. @@ -226,14 +226,14 @@ runs: run: dotnet nuget push artifacts/*.nupkg --api-key $Env:API_KEY --source '${{ steps.setup.outputs.source-url }}' --skip-duplicate - name: Publish Artifacts - uses: Lombiq/GitHub-Actions/.github/actions/upload-artifact@dev + uses: Lombiq/GitHub-Actions/.github/actions/upload-artifact@issue/LMBQ-178 with: name: NuGet-Package path: artifacts retention-days: ${{ inputs.nuget-artifact-retention-days }} - name: Create Release - uses: Lombiq/GitHub-Actions/.github/actions/release-action@dev + uses: Lombiq/GitHub-Actions/.github/actions/release-action@issue/LMBQ-178 # This is to prevent creating releases when pushing tags for issue-specific pre-releases like # v4.3.1-alpha.osoe-86. if: "!contains(steps.setup.outputs.publish-version, '-')" diff --git a/.github/actions/spelling/action.yml b/.github/actions/spelling/action.yml index 23c6c4c06..e12df1ebd 100644 --- a/.github/actions/spelling/action.yml +++ b/.github/actions/spelling/action.yml @@ -45,7 +45,7 @@ inputs: Repository with default configuration to use when the workspace repository doesn't have its own configuration. The default from Check Spelling is ''. required: false - default: Lombiq/GitHub-Actions@dev + default: Lombiq/GitHub-Actions@issue/LMBQ-178 post-comment: description: Flag for if check-spelling should post comment, the default is 1. required: false @@ -160,7 +160,7 @@ runs: # source prefixes" step with the dictionary version tag that belongs to the commit of the release. See # https://github.com/check-spelling/check-spelling/blob/v0.0.22/action.yml#L67 for current version. # Also update check_extra_dictionaries below as necessary. - uses: Lombiq/check-spelling@dev-lombiq # Post-v0.0.22 with actions/cache update. + uses: Lombiq/check-spelling@issue/LMBQ-178-lombiq # Post-v0.0.22 with actions/cache update. with: check_file_names: 1 config: ${{ inputs.configuration-path }} diff --git a/.github/actions/test-dotnet/action.yml b/.github/actions/test-dotnet/action.yml index 403a6bedc..1cdbf767a 100644 --- a/.github/actions/test-dotnet/action.yml +++ b/.github/actions/test-dotnet/action.yml @@ -92,7 +92,7 @@ runs: Set-GitHubEnv 'Lombiq_Tests_UI__OrchardCoreUITestExecutorConfiguration__MaxParallelTests' ${{ inputs.ui-test-parallelism }} - name: Install dotnet-dump - uses: Lombiq/GitHub-Actions/.github/actions/install-dotnet-tool@dev + uses: Lombiq/GitHub-Actions/.github/actions/install-dotnet-tool@issue/LMBQ-178 with: name: dotnet-dump version: 8.0.510501 @@ -128,7 +128,7 @@ runs: # Under Windows this can fail with "ENOENT: no such file or directory" if the path is too long, see # https://github.com/actions/upload-artifact/issues/240. - name: Upload UI Testing Artifacts - uses: Lombiq/GitHub-Actions/.github/actions/upload-artifact@dev + uses: Lombiq/GitHub-Actions/.github/actions/upload-artifact@issue/LMBQ-178 # We don't need additional conditions, because of the "if-no-files-found" setting. if: (success() || failure()) && steps.run-tests.outputs.test-count != 0 with: @@ -144,7 +144,7 @@ runs: run: Merge-BlameHangDumps -Directory "${{ inputs.build-directory }}" -Configuration "${{ inputs.test-configuration }}" - name: Upload Blame Hang Dumps - uses: Lombiq/GitHub-Actions/.github/actions/upload-artifact@dev + uses: Lombiq/GitHub-Actions/.github/actions/upload-artifact@issue/LMBQ-178 if: | failure() && steps.run-tests.outputs.test-count != 0 && @@ -157,7 +157,7 @@ runs: retention-days: ${{ inputs.artifact-retention-days }} - name: Upload Dotnet Test Hang Dumps - uses: Lombiq/GitHub-Actions/.github/actions/upload-artifact@dev + uses: Lombiq/GitHub-Actions/.github/actions/upload-artifact@issue/LMBQ-178 if: (success() || failure()) && steps.run-tests.outputs.test-count != 0 && steps.run-tests.outputs.dotnet-test-hang-dump != 0 with: name: dotnet-test-hang-dump-${{ steps.setup.outputs.artifact-name-suffix }} @@ -166,7 +166,7 @@ runs: retention-days: ${{ inputs.artifact-retention-days }} - name: Upload Diagnostic Logs - uses: Lombiq/GitHub-Actions/.github/actions/upload-artifact@dev + uses: Lombiq/GitHub-Actions/.github/actions/upload-artifact@issue/LMBQ-178 # always() is needed because if the test process hangs and the workflow times out, we still need the diagnostic # logs. We don't need additional conditions, because of the "if-no-files-found" setting. if: always() && steps.run-tests.outputs.test-count != 0 diff --git a/.github/actions/verify-dotnet-consolidation/action.yml b/.github/actions/verify-dotnet-consolidation/action.yml index 65f8a788b..8f225fb5b 100644 --- a/.github/actions/verify-dotnet-consolidation/action.yml +++ b/.github/actions/verify-dotnet-consolidation/action.yml @@ -39,7 +39,7 @@ runs: (Resolve-Path '${{ github.action_path }}/../../../Scripts').Path >> $Env:GITHUB_PATH - name: Install dotnet-consolidate - uses: Lombiq/GitHub-Actions/.github/actions/install-dotnet-tool@dev + uses: Lombiq/GitHub-Actions/.github/actions/install-dotnet-tool@issue/LMBQ-178 with: name: dotnet-consolidate version: 4.2.0 diff --git a/.github/actions/workflow-telemetry/action.yml b/.github/actions/workflow-telemetry/action.yml index 91644800b..5691c0ebe 100644 --- a/.github/actions/workflow-telemetry/action.yml +++ b/.github/actions/workflow-telemetry/action.yml @@ -59,7 +59,7 @@ runs: using: composite steps: - name: Set Checkout Token - uses: Lombiq/GitHub-Actions/.github/actions/set-checkout-token@dev + uses: Lombiq/GitHub-Actions/.github/actions/set-checkout-token@issue/LMBQ-178 with: checkout-token: ${{ inputs.github_token }} diff --git a/.github/workflows/build-and-test-dotnet.yml b/.github/workflows/build-and-test-dotnet.yml index 447f39c03..b2a41f22a 100644 --- a/.github/workflows/build-and-test-dotnet.yml +++ b/.github/workflows/build-and-test-dotnet.yml @@ -207,30 +207,30 @@ jobs: # This has to be the first step so it can collect data about the whole workflow run. - name: Collect Workflow Telemetry if: inputs.collect-workflow-telemetry == 'true' - uses: Lombiq/GitHub-Actions/.github/actions/workflow-telemetry@dev + uses: Lombiq/GitHub-Actions/.github/actions/workflow-telemetry@issue/LMBQ-178 with: github_token: ${{ secrets.CHECKOUT_TOKEN }} - name: Checkout - uses: Lombiq/GitHub-Actions/.github/actions/checkout@dev + uses: Lombiq/GitHub-Actions/.github/actions/checkout@issue/LMBQ-178 with: token: ${{ secrets.CHECKOUT_TOKEN }} - name: Set up .NET - uses: Lombiq/GitHub-Actions/.github/actions/setup-dotnet@dev + uses: Lombiq/GitHub-Actions/.github/actions/setup-dotnet@issue/LMBQ-178 with: dotnet-version: ${{ inputs.dotnet-version }} - name: Verify that .NET packages are consolidated if: ${{ inputs.verify-dotnet-consolidation }} - uses: Lombiq/GitHub-Actions/.github/actions/verify-dotnet-consolidation@dev + uses: Lombiq/GitHub-Actions/.github/actions/verify-dotnet-consolidation@issue/LMBQ-178 with: directory: ${{ inputs.build-directory }} exclude-version-regex: ${{ inputs.dotnet-consolidation-exclude-version-regex }} exclude-project-path: ${{ inputs.dotnet-consolidation-exclude-project-path }} - name: Build and Static Code Analysis - uses: Lombiq/GitHub-Actions/.github/actions/build-dotnet@dev + uses: Lombiq/GitHub-Actions/.github/actions/build-dotnet@issue/LMBQ-178 with: directory: ${{ inputs.build-directory}} configuration: ${{ inputs.build-configuration}} @@ -260,6 +260,6 @@ jobs: - name: Cancel Workflow on Failure if: failure() && inputs.cancel-workflow-on-failure == 'true' - uses: Lombiq/GitHub-Actions/.github/actions/cancel-workflow@dev + uses: Lombiq/GitHub-Actions/.github/actions/cancel-workflow@issue/LMBQ-178 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/build-and-test-orchard-core.yml b/.github/workflows/build-and-test-orchard-core.yml index 0acdded9e..5230cbfb6 100644 --- a/.github/workflows/build-and-test-orchard-core.yml +++ b/.github/workflows/build-and-test-orchard-core.yml @@ -229,7 +229,7 @@ jobs: # This has to be the first step so it can collect data about the whole workflow run. - name: Collect Workflow Telemetry if: inputs.collect-workflow-telemetry == 'true' - uses: Lombiq/GitHub-Actions/.github/actions/workflow-telemetry@dev + uses: Lombiq/GitHub-Actions/.github/actions/workflow-telemetry@issue/LMBQ-178 with: github_token: ${{ secrets.CHECKOUT_TOKEN }} @@ -245,28 +245,28 @@ jobs: Write-Output $message - name: Checkout - uses: Lombiq/GitHub-Actions/.github/actions/checkout@dev + uses: Lombiq/GitHub-Actions/.github/actions/checkout@issue/LMBQ-178 with: token: ${{ secrets.CHECKOUT_TOKEN }} - name: Set up .NET - uses: Lombiq/GitHub-Actions/.github/actions/setup-dotnet@dev + uses: Lombiq/GitHub-Actions/.github/actions/setup-dotnet@issue/LMBQ-178 with: dotnet-version: ${{ inputs.dotnet-version }} - name: Verify that .NET packages are consolidated if: ${{ inputs.verify-dotnet-consolidation }} - uses: Lombiq/GitHub-Actions/.github/actions/verify-dotnet-consolidation@dev + uses: Lombiq/GitHub-Actions/.github/actions/verify-dotnet-consolidation@issue/LMBQ-178 with: directory: ${{ inputs.build-directory }} exclude-version-regex: ${{ inputs.dotnet-consolidation-exclude-version-regex }} exclude-project-path: ${{ inputs.dotnet-consolidation-exclude-project-path }} - name: Enable Node.js corepack - uses: Lombiq/GitHub-Actions/.github/actions/enable-corepack@dev + uses: Lombiq/GitHub-Actions/.github/actions/enable-corepack@issue/LMBQ-178 - name: Build and Static Code Analysis - uses: Lombiq/GitHub-Actions/.github/actions/build-dotnet@dev + uses: Lombiq/GitHub-Actions/.github/actions/build-dotnet@issue/LMBQ-178 with: directory: ${{ inputs.build-directory }} configuration: ${{ inputs.build-configuration}} @@ -282,19 +282,19 @@ jobs: - name: Print configuration summary if: inputs.print-config-summary == 'true' && (success() || failure()) - uses: Lombiq/GitHub-Actions/.github/actions/print-config-summary@dev + uses: Lombiq/GitHub-Actions/.github/actions/print-config-summary@issue/LMBQ-178 - name: Set up SQL Server if: inputs.set-up-sql-server == 'true' - uses: Lombiq/GitHub-Actions/.github/actions/setup-sql-server@dev + uses: Lombiq/GitHub-Actions/.github/actions/setup-sql-server@issue/LMBQ-178 - name: Set up Elasticsearch if: inputs.set-up-elasticsearch == 'true' - uses: Lombiq/GitHub-Actions/.github/actions/setup-elasticsearch@dev + uses: Lombiq/GitHub-Actions/.github/actions/setup-elasticsearch@issue/LMBQ-178 - name: Set up Azurite if: inputs.set-up-azurite == 'true' - uses: Lombiq/GitHub-Actions/.github/actions/setup-azurite@dev + uses: Lombiq/GitHub-Actions/.github/actions/setup-azurite@issue/LMBQ-178 with: location: ${{ inputs.build-directory}} @@ -315,6 +315,6 @@ jobs: - name: Cancel Workflow on Failure if: failure() && inputs.cancel-workflow-on-failure == 'true' - uses: Lombiq/GitHub-Actions/.github/actions/cancel-workflow@dev + uses: Lombiq/GitHub-Actions/.github/actions/cancel-workflow@issue/LMBQ-178 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/build-dotnet.yml b/.github/workflows/build-dotnet.yml index 22013e6f0..7ffb538bb 100644 --- a/.github/workflows/build-dotnet.yml +++ b/.github/workflows/build-dotnet.yml @@ -88,23 +88,23 @@ jobs: Write-Output '::warning::This workflow is deprecated. Use build-and-test-dotnet instead, that can also execute tests.' - name: Checkout - uses: Lombiq/GitHub-Actions/.github/actions/checkout@dev + uses: Lombiq/GitHub-Actions/.github/actions/checkout@issue/LMBQ-178 with: token: ${{ secrets.CHECKOUT_TOKEN }} - name: Set up .NET - uses: Lombiq/GitHub-Actions/.github/actions/setup-dotnet@dev + uses: Lombiq/GitHub-Actions/.github/actions/setup-dotnet@issue/LMBQ-178 with: dotnet-version: ${{ inputs.dotnet-version }} - name: Verify that .NET packages are consolidated if: ${{ inputs.verify-dotnet-consolidation }} - uses: Lombiq/GitHub-Actions/.github/actions/verify-dotnet-consolidation@dev + uses: Lombiq/GitHub-Actions/.github/actions/verify-dotnet-consolidation@issue/LMBQ-178 with: directory: ${{ inputs.build-directory }} - name: Build and Static Code Analysis - uses: Lombiq/GitHub-Actions/.github/actions/build-dotnet@dev + uses: Lombiq/GitHub-Actions/.github/actions/build-dotnet@issue/LMBQ-178 with: directory: ${{ inputs.build-directory}} verbosity: ${{ inputs.build-verbosity}} @@ -115,6 +115,6 @@ jobs: - name: Cancel Workflow on Failure if: failure() && inputs.cancel-workflow-on-failure == 'true' - uses: Lombiq/GitHub-Actions/.github/actions/cancel-workflow@dev + uses: Lombiq/GitHub-Actions/.github/actions/cancel-workflow@issue/LMBQ-178 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/create-jira-issues-for-community-activities-in-this-repo.yml b/.github/workflows/create-jira-issues-for-community-activities-in-this-repo.yml index 7b307e153..dc3199401 100644 --- a/.github/workflows/create-jira-issues-for-community-activities-in-this-repo.yml +++ b/.github/workflows/create-jira-issues-for-community-activities-in-this-repo.yml @@ -11,7 +11,7 @@ on: jobs: create-jira-issues-for-community-activities: name: Create Jira issues for community activities - uses: Lombiq/GitHub-Actions/.github/workflows/create-jira-issues-for-community-activities.yml@dev + uses: Lombiq/GitHub-Actions/.github/workflows/create-jira-issues-for-community-activities.yml@issue/LMBQ-178 secrets: JIRA_BASE_URL: ${{ secrets.DEFAULT_JIRA_BASE_URL }} JIRA_USER_EMAIL: ${{ secrets.DEFAULT_JIRA_USER_EMAIL }} diff --git a/.github/workflows/create-jira-issues-for-community-activities.yml b/.github/workflows/create-jira-issues-for-community-activities.yml index 939b6c970..9557306d1 100644 --- a/.github/workflows/create-jira-issues-for-community-activities.yml +++ b/.github/workflows/create-jira-issues-for-community-activities.yml @@ -60,7 +60,7 @@ jobs: timeout-minutes: ${{ inputs.timeout-minutes }} steps: - name: Create Jira issues for community activities - uses: Lombiq/GitHub-Actions/.github/actions/create-jira-issues-for-community-activities@dev + uses: Lombiq/GitHub-Actions/.github/actions/create-jira-issues-for-community-activities@issue/LMBQ-178 env: JIRA_BASE_URL: ${{ secrets.JIRA_BASE_URL }} JIRA_USER_EMAIL: ${{ secrets.JIRA_USER_EMAIL }} diff --git a/.github/workflows/deploy-orchard1-to-azure-app-service.yml b/.github/workflows/deploy-orchard1-to-azure-app-service.yml index 9fc64e0db..de2dd668b 100644 --- a/.github/workflows/deploy-orchard1-to-azure-app-service.yml +++ b/.github/workflows/deploy-orchard1-to-azure-app-service.yml @@ -128,12 +128,12 @@ jobs: timeout-minutes: ${{ inputs.timeout-minutes }} steps: - name: Checkout - uses: Lombiq/GitHub-Actions/.github/actions/checkout@dev + uses: Lombiq/GitHub-Actions/.github/actions/checkout@issue/LMBQ-178 with: token: ${{ secrets.CHECKOUT_TOKEN }} - name: Enable Node corepack - uses: Lombiq/GitHub-Actions/.github/actions/enable-corepack@dev + uses: Lombiq/GitHub-Actions/.github/actions/enable-corepack@issue/LMBQ-178 # Calling nuget restore separately on the actual solution, because we're passing Orchard.proj to the msbuild # action instead to be able to call the Precompiled target. @@ -141,7 +141,7 @@ jobs: run: nuget restore ${{ inputs.build-directory }}\${{ inputs.solution-or-project-path }} - name: Publish Precompiled App - uses: Lombiq/GitHub-Actions/.github/actions/msbuild@dev + uses: Lombiq/GitHub-Actions/.github/actions/msbuild@issue/LMBQ-178 with: solution-or-project-path: Orchard.proj verbosity: ${{ inputs.build-verbosity }} @@ -152,14 +152,14 @@ jobs: /p:Solution=${{ inputs.build-directory }}\${{ inputs.solution-or-project-path }} - name: Login to Azure - uses: Lombiq/GitHub-Actions/.github/actions/login-to-azure@dev + uses: Lombiq/GitHub-Actions/.github/actions/login-to-azure@issue/LMBQ-178 env: AZURE_CLIENT_ID: ${{ secrets.AZURE_APP_SERVICE_DEPLOYMENT_SERVICE_PRINCIPAL_ID }} AZURE_TENANT_ID: ${{ secrets.AZURE_APP_SERVICE_DEPLOYMENT_AZURE_TENANT_ID }} AZURE_SUBSCRIPTION_ID: ${{ secrets.AZURE_APP_SERVICE_DEPLOYMENT_AZURE_SUBSCRIPTION_ID }} - name: Initialize PowerShell modules - uses: Lombiq/Infrastructure-Scripts/.github/actions/initialize@dev + uses: Lombiq/Infrastructure-Scripts/.github/actions/initialize@issue/LMBQ-178 - name: Stop Web App Slot run: | @@ -183,7 +183,7 @@ jobs: - name: Add Azure Application Insights Release Annotation if: ${{ inputs.application-insights-resource-id != '' }} - uses: Lombiq/GitHub-Actions/.github/actions/add-azure-application-insights-release-annotation@dev + uses: Lombiq/GitHub-Actions/.github/actions/add-azure-application-insights-release-annotation@issue/LMBQ-178 with: release-name: 'Deploy #${{ github.run_number }} to ${{ inputs.slot-name }}' application-insights-resource-id: ${{ inputs.application-insights-resource-id }} @@ -216,6 +216,6 @@ jobs: - name: Cancel Workflow on Failure if: failure() && inputs.cancel-workflow-on-failure == 'true' - uses: Lombiq/GitHub-Actions/.github/actions/cancel-workflow@dev + uses: Lombiq/GitHub-Actions/.github/actions/cancel-workflow@issue/LMBQ-178 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/deploy-to-azure-app-service.yml b/.github/workflows/deploy-to-azure-app-service.yml index 2c674fba3..27fe21f4c 100644 --- a/.github/workflows/deploy-to-azure-app-service.yml +++ b/.github/workflows/deploy-to-azure-app-service.yml @@ -144,17 +144,17 @@ jobs: timeout-minutes: ${{ inputs.timeout-minutes }} steps: - name: Checkout - uses: Lombiq/GitHub-Actions/.github/actions/checkout@dev + uses: Lombiq/GitHub-Actions/.github/actions/checkout@issue/LMBQ-178 with: token: ${{ secrets.CHECKOUT_TOKEN }} - name: Set up .NET - uses: Lombiq/GitHub-Actions/.github/actions/setup-dotnet@dev + uses: Lombiq/GitHub-Actions/.github/actions/setup-dotnet@issue/LMBQ-178 with: dotnet-version: ${{ inputs.dotnet-version }} - name: Enable Node corepack - uses: Lombiq/GitHub-Actions/.github/actions/enable-corepack@dev + uses: Lombiq/GitHub-Actions/.github/actions/enable-corepack@issue/LMBQ-178 # If runtime is defined, we need to add "--runtime=" to the string so it will be a valid build/publish option. The # "build-dotnet" action requires the additional switches to be in separate lines (even the parameters), but we can @@ -166,7 +166,7 @@ jobs: "runtime-option=--runtime=${{ inputs.runtime }}" >> $Env:GITHUB_OUTPUT - name: Build and Static Code Analysis - uses: Lombiq/GitHub-Actions/.github/actions/build-dotnet@dev + uses: Lombiq/GitHub-Actions/.github/actions/build-dotnet@issue/LMBQ-178 with: directory: ${{ inputs.build-directory }} verbosity: ${{ inputs.build-verbosity }} @@ -199,14 +199,14 @@ jobs: Compress-Archive -Path .\Published\* -DestinationPath .\Published.zip - name: Login to Azure - uses: Lombiq/GitHub-Actions/.github/actions/login-to-azure@dev + uses: Lombiq/GitHub-Actions/.github/actions/login-to-azure@issue/LMBQ-178 env: AZURE_CLIENT_ID: ${{ secrets.AZURE_APP_SERVICE_DEPLOYMENT_SERVICE_PRINCIPAL_ID }} AZURE_TENANT_ID: ${{ secrets.AZURE_APP_SERVICE_DEPLOYMENT_AZURE_TENANT_ID }} AZURE_SUBSCRIPTION_ID: ${{ secrets.AZURE_APP_SERVICE_DEPLOYMENT_AZURE_SUBSCRIPTION_ID }} - name: Initialize PowerShell modules - uses: Lombiq/Infrastructure-Scripts/.github/actions/initialize@dev + uses: Lombiq/Infrastructure-Scripts/.github/actions/initialize@issue/LMBQ-178 - name: Stop Web App Slot run: | @@ -228,7 +228,7 @@ jobs: clean: false - name: Add Azure Application Insights Release Annotation - uses: Lombiq/GitHub-Actions/.github/actions/add-azure-application-insights-release-annotation@dev + uses: Lombiq/GitHub-Actions/.github/actions/add-azure-application-insights-release-annotation@issue/LMBQ-178 with: release-name: 'Deploy #${{ github.run_number }} to ${{ inputs.slot-name }}' application-insights-resource-id: ${{ inputs.application-insights-resource-id }} @@ -249,6 +249,6 @@ jobs: - name: Cancel Workflow on Failure if: failure() && inputs.cancel-workflow-on-failure == 'true' - uses: Lombiq/GitHub-Actions/.github/actions/cancel-workflow@dev + uses: Lombiq/GitHub-Actions/.github/actions/cancel-workflow@issue/LMBQ-178 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/markdown-lint-this-repo.yml b/.github/workflows/markdown-lint-this-repo.yml index 910f32726..21b409813 100644 --- a/.github/workflows/markdown-lint-this-repo.yml +++ b/.github/workflows/markdown-lint-this-repo.yml @@ -10,7 +10,7 @@ on: jobs: markdown-linting: name: Markdown Linting - uses: Lombiq/GitHub-Actions/.github/workflows/markdown-lint.yml@dev + uses: Lombiq/GitHub-Actions/.github/workflows/markdown-lint.yml@issue/LMBQ-178 with: globs: '**/*.{md,markdown};!License.md' separator: ; diff --git a/.github/workflows/markdown-lint.yml b/.github/workflows/markdown-lint.yml index 47fe28d4a..7a3a06459 100644 --- a/.github/workflows/markdown-lint.yml +++ b/.github/workflows/markdown-lint.yml @@ -43,12 +43,12 @@ jobs: timeout-minutes: ${{ inputs.timeout-minutes }} steps: - name: Checkout - uses: Lombiq/GitHub-Actions/.github/actions/checkout@dev + uses: Lombiq/GitHub-Actions/.github/actions/checkout@issue/LMBQ-178 with: token: ${{ secrets.CHECKOUT_TOKEN }} - name: Markdown Linting - uses: Lombiq/GitHub-Actions/.github/actions/markdown-lint@dev + uses: Lombiq/GitHub-Actions/.github/actions/markdown-lint@issue/LMBQ-178 with: config: ${{ inputs.config }} fix: ${{ inputs.fix }} @@ -57,6 +57,6 @@ jobs: - name: Cancel Workflow on Failure if: failure() && inputs.cancel-workflow-on-failure == 'true' - uses: Lombiq/GitHub-Actions/.github/actions/cancel-workflow@dev + uses: Lombiq/GitHub-Actions/.github/actions/cancel-workflow@issue/LMBQ-178 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/msbuild-and-test.yml b/.github/workflows/msbuild-and-test.yml index b3f4ebd72..6385b1d6b 100644 --- a/.github/workflows/msbuild-and-test.yml +++ b/.github/workflows/msbuild-and-test.yml @@ -111,24 +111,24 @@ jobs: # This has to be the first step so it can collect data about the whole workflow run. - name: Collect Workflow Telemetry if: inputs.collect-workflow-telemetry == 'true' - uses: Lombiq/GitHub-Actions/.github/actions/workflow-telemetry@dev + uses: Lombiq/GitHub-Actions/.github/actions/workflow-telemetry@issue/LMBQ-178 with: github_token: ${{ secrets.CHECKOUT_TOKEN }} - name: Checkout - uses: Lombiq/GitHub-Actions/.github/actions/checkout@dev + uses: Lombiq/GitHub-Actions/.github/actions/checkout@issue/LMBQ-178 with: token: ${{ secrets.CHECKOUT_TOKEN }} - name: Enable Node corepack - uses: Lombiq/GitHub-Actions/.github/actions/enable-corepack@dev + uses: Lombiq/GitHub-Actions/.github/actions/enable-corepack@issue/LMBQ-178 # This is necessary for building Gulp Extensions and test-dotnet. - name: Set up .NET - uses: Lombiq/GitHub-Actions/.github/actions/setup-dotnet@dev + uses: Lombiq/GitHub-Actions/.github/actions/setup-dotnet@issue/LMBQ-178 - name: Build and Static Code Analysis - uses: Lombiq/GitHub-Actions/.github/actions/msbuild@dev + uses: Lombiq/GitHub-Actions/.github/actions/msbuild@issue/LMBQ-178 with: directory: ${{ inputs.build-directory }} solution-or-project-path: ${{ inputs.solution-or-project-path }} @@ -148,6 +148,6 @@ jobs: - name: Cancel Workflow on Failure if: failure() && inputs.cancel-workflow-on-failure == 'true' - uses: Lombiq/GitHub-Actions/.github/actions/cancel-workflow@dev + uses: Lombiq/GitHub-Actions/.github/actions/cancel-workflow@issue/LMBQ-178 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/post-pull-request-checks-automation.yml b/.github/workflows/post-pull-request-checks-automation.yml index 020b75c41..d30797d44 100644 --- a/.github/workflows/post-pull-request-checks-automation.yml +++ b/.github/workflows/post-pull-request-checks-automation.yml @@ -58,7 +58,7 @@ jobs: steps: - name: Check Further Steps Should Run if: inputs.run-only-latest-workflow == 'true' - uses: Lombiq/GitHub-Actions/.github/actions/check-current-workflow-is-latest@dev + uses: Lombiq/GitHub-Actions/.github/actions/check-current-workflow-is-latest@issue/LMBQ-178 id: check-steps-should-run env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} @@ -77,7 +77,7 @@ jobs: - name: Automatically Merge Pull Request if: steps.check-steps-should-run.outputs.is-latest != 'false' - uses: Lombiq/GitHub-Actions/.github/actions/auto-merge-pull-request@dev + uses: Lombiq/GitHub-Actions/.github/actions/auto-merge-pull-request@issue/LMBQ-178 env: GITHUB_TOKEN: ${{ env.MERGE_TOKEN }} with: @@ -85,7 +85,7 @@ jobs: - name: Automatically Transition Jira issue if: steps.check-steps-should-run.outputs.is-latest != 'false' - uses: Lombiq/GitHub-Actions/.github/actions/auto-transition-jira-issue@dev + uses: Lombiq/GitHub-Actions/.github/actions/auto-transition-jira-issue@issue/LMBQ-178 env: GITHUB_TOKEN: ${{ env.MERGE_TOKEN }} JIRA_BASE_URL: ${{ secrets.JIRA_BASE_URL }} @@ -94,7 +94,7 @@ jobs: - name: Remove Label if: steps.check-steps-should-run.outputs.is-latest != 'false' - uses: Lombiq/GitHub-Actions/.github/actions/add-remove-label@dev + uses: Lombiq/GitHub-Actions/.github/actions/add-remove-label@issue/LMBQ-178 with: token: ${{ env.MERGE_TOKEN }} labels: merge-and-resolve-jira-issue-if-checks-succeed diff --git a/.github/workflows/publish-nuget.yml b/.github/workflows/publish-nuget.yml index 74e5cd177..01b3130f1 100644 --- a/.github/workflows/publish-nuget.yml +++ b/.github/workflows/publish-nuget.yml @@ -69,17 +69,17 @@ jobs: timeout-minutes: ${{ inputs.timeout-minutes }} steps: - name: Checkout - uses: Lombiq/GitHub-Actions/.github/actions/checkout@dev + uses: Lombiq/GitHub-Actions/.github/actions/checkout@issue/LMBQ-178 with: token: ${{ secrets.CHECKOUT_TOKEN }} - name: Set up .NET - uses: Lombiq/GitHub-Actions/.github/actions/setup-dotnet@dev + uses: Lombiq/GitHub-Actions/.github/actions/setup-dotnet@issue/LMBQ-178 with: dotnet-version: ${{ inputs.dotnet-version }} - name: Publish to NuGet - uses: Lombiq/GitHub-Actions/.github/actions/publish-nuget@dev + uses: Lombiq/GitHub-Actions/.github/actions/publish-nuget@issue/LMBQ-178 with: source: ${{ inputs.source }} verbosity: ${{ inputs.verbosity }} @@ -94,6 +94,6 @@ jobs: - name: Cancel Workflow on Failure if: failure() && inputs.cancel-workflow-on-failure == 'true' - uses: Lombiq/GitHub-Actions/.github/actions/cancel-workflow@dev + uses: Lombiq/GitHub-Actions/.github/actions/cancel-workflow@issue/LMBQ-178 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/reset-azure-environment.yml b/.github/workflows/reset-azure-environment.yml index 2192d1eca..ad0ed1952 100644 --- a/.github/workflows/reset-azure-environment.yml +++ b/.github/workflows/reset-azure-environment.yml @@ -133,14 +133,14 @@ jobs: timeout-minutes: ${{ inputs.timeout-minutes }} steps: - name: Login to Azure - uses: Lombiq/GitHub-Actions/.github/actions/login-to-azure@dev + uses: Lombiq/GitHub-Actions/.github/actions/login-to-azure@issue/LMBQ-178 env: AZURE_CLIENT_ID: ${{ secrets.AZURE_APP_SERVICE_RESET_SERVICE_PRINCIPAL_ID }} AZURE_TENANT_ID: ${{ secrets.AZURE_APP_SERVICE_RESET_AZURE_TENANT_ID }} AZURE_SUBSCRIPTION_ID: ${{ secrets.AZURE_APP_SERVICE_RESET_AZURE_SUBSCRIPTION_ID }} - name: Initialize PowerShell modules - uses: Lombiq/Infrastructure-Scripts/.github/actions/initialize@dev + uses: Lombiq/Infrastructure-Scripts/.github/actions/initialize@issue/LMBQ-178 - name: Stop Web App Slot run: | @@ -193,7 +193,7 @@ jobs: - name: Add Azure Application Insights Release Annotation if: ${{ inputs.application-insights-resource-id != '' }} - uses: Lombiq/GitHub-Actions/.github/actions/add-azure-application-insights-release-annotation@dev + uses: Lombiq/GitHub-Actions/.github/actions/add-azure-application-insights-release-annotation@issue/LMBQ-178 with: release-name: 'Reset #${{ github.run_number }} from ${{ inputs.source-slot-name }} to ${{ inputs.destination-slot-name }}' application-insights-resource-id: ${{ inputs.application-insights-resource-id }} @@ -235,6 +235,6 @@ jobs: - name: Cancel Workflow on Failure if: failure() && inputs.cancel-workflow-on-failure == 'true' - uses: Lombiq/GitHub-Actions/.github/actions/cancel-workflow@dev + uses: Lombiq/GitHub-Actions/.github/actions/cancel-workflow@issue/LMBQ-178 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/spelling-this-repo.yml b/.github/workflows/spelling-this-repo.yml index cc1d2dd9b..88d9b2559 100644 --- a/.github/workflows/spelling-this-repo.yml +++ b/.github/workflows/spelling-this-repo.yml @@ -11,7 +11,7 @@ on: jobs: spelling: name: Spelling - uses: Lombiq/GitHub-Actions/.github/workflows/spelling.yml@dev + uses: Lombiq/GitHub-Actions/.github/workflows/spelling.yml@issue/LMBQ-178 with: additional-dictionaries: | cspell:companies/src/companies.txt diff --git a/.github/workflows/spelling.yml b/.github/workflows/spelling.yml index 8808148f0..62e214b4b 100644 --- a/.github/workflows/spelling.yml +++ b/.github/workflows/spelling.yml @@ -79,7 +79,7 @@ on: Repository with default configuration to use when the workspace repository doesn't have its own configuration. The default from Check Spelling is ''. type: string - default: Lombiq/GitHub-Actions@dev + default: Lombiq/GitHub-Actions@issue/LMBQ-178 timeout-minutes: type: number default: 3 @@ -94,7 +94,7 @@ jobs: timeout-minutes: ${{ inputs.timeout-minutes }} steps: - name: Checkout - uses: Lombiq/GitHub-Actions/.github/actions/checkout@dev + uses: Lombiq/GitHub-Actions/.github/actions/checkout@issue/LMBQ-178 with: token: ${{ secrets.CHECKOUT_TOKEN }} @@ -111,7 +111,7 @@ jobs: - name: Check Spelling id: check-spelling-action - uses: Lombiq/GitHub-Actions/.github/actions/spelling@dev + uses: Lombiq/GitHub-Actions/.github/actions/spelling@issue/LMBQ-178 with: merge-file-excludes: ${{ inputs.merge-file-excludes }} merge-forbidden-patterns: ${{ inputs.merge-forbidden-patterns }} @@ -125,7 +125,7 @@ jobs: - name: Cancel Workflow on Failure if: failure() && inputs.cancel-workflow-on-failure == 'true' - uses: Lombiq/GitHub-Actions/.github/actions/cancel-workflow@dev + uses: Lombiq/GitHub-Actions/.github/actions/cancel-workflow@issue/LMBQ-178 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} @@ -138,7 +138,7 @@ jobs: if: always() && needs.check-spelling.outputs.followup && github.event_name == 'pull_request' steps: - name: Comment (PR) - uses: Lombiq/GitHub-Actions/.github/actions/spelling@dev + uses: Lombiq/GitHub-Actions/.github/actions/spelling@issue/LMBQ-178 with: post-comment: 1 task: ${{ needs.check-spelling.outputs.followup }} diff --git a/.github/workflows/swap-azure-web-app-slots.yml b/.github/workflows/swap-azure-web-app-slots.yml index aa0901531..7b1fe80b1 100644 --- a/.github/workflows/swap-azure-web-app-slots.yml +++ b/.github/workflows/swap-azure-web-app-slots.yml @@ -81,14 +81,14 @@ jobs: timeout-minutes: ${{ inputs.timeout-minutes }} steps: - name: Login to Azure - uses: Lombiq/GitHub-Actions/.github/actions/login-to-azure@dev + uses: Lombiq/GitHub-Actions/.github/actions/login-to-azure@issue/LMBQ-178 env: AZURE_CLIENT_ID: ${{ secrets.AZURE_APP_SERVICE_SWAP_SERVICE_PRINCIPAL_ID }} AZURE_TENANT_ID: ${{ secrets.AZURE_APP_SERVICE_SWAP_AZURE_TENANT_ID }} AZURE_SUBSCRIPTION_ID: ${{ secrets.AZURE_APP_SERVICE_SWAP_AZURE_SUBSCRIPTION_ID }} - name: Initialize PowerShell modules - uses: Lombiq/Infrastructure-Scripts/.github/actions/initialize@dev + uses: Lombiq/Infrastructure-Scripts/.github/actions/initialize@issue/LMBQ-178 - name: Test Source Web App Slot run: | @@ -106,7 +106,7 @@ jobs: -DestinationSlotName ${{ inputs.destination-slot-name }} - name: Add Azure Application Insights Release Annotation - uses: Lombiq/GitHub-Actions/.github/actions/add-azure-application-insights-release-annotation@dev + uses: Lombiq/GitHub-Actions/.github/actions/add-azure-application-insights-release-annotation@issue/LMBQ-178 with: release-name: 'Swap #${{ github.run_number }} from ${{ inputs.source-slot-name }} to ${{ inputs.destination-slot-name }}' application-insights-resource-id: ${{ inputs.application-insights-resource-id }} @@ -120,6 +120,6 @@ jobs: - name: Cancel Workflow on Failure if: failure() && inputs.cancel-workflow-on-failure == 'true' - uses: Lombiq/GitHub-Actions/.github/actions/cancel-workflow@dev + uses: Lombiq/GitHub-Actions/.github/actions/cancel-workflow@issue/LMBQ-178 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/swap-orchard1-azure-web-app-slots.yml b/.github/workflows/swap-orchard1-azure-web-app-slots.yml index 30c9def3f..85eb181e2 100644 --- a/.github/workflows/swap-orchard1-azure-web-app-slots.yml +++ b/.github/workflows/swap-orchard1-azure-web-app-slots.yml @@ -92,14 +92,14 @@ jobs: timeout-minutes: ${{ inputs.timeout-minutes }} steps: - name: Login to Azure - uses: Lombiq/GitHub-Actions/.github/actions/login-to-azure@dev + uses: Lombiq/GitHub-Actions/.github/actions/login-to-azure@issue/LMBQ-178 env: AZURE_CLIENT_ID: ${{ secrets.AZURE_APP_SERVICE_SWAP_SERVICE_PRINCIPAL_ID }} AZURE_TENANT_ID: ${{ secrets.AZURE_APP_SERVICE_SWAP_AZURE_TENANT_ID }} AZURE_SUBSCRIPTION_ID: ${{ secrets.AZURE_APP_SERVICE_SWAP_AZURE_SUBSCRIPTION_ID }} - name: Initialize PowerShell modules - uses: Lombiq/Infrastructure-Scripts/.github/actions/initialize@dev + uses: Lombiq/Infrastructure-Scripts/.github/actions/initialize@issue/LMBQ-178 - name: Swap Web App Slots run: | @@ -111,7 +111,7 @@ jobs: - name: Add Azure Application Insights Release Annotation if: ${{ inputs.application-insights-resource-id != '' }} - uses: Lombiq/GitHub-Actions/.github/actions/add-azure-application-insights-release-annotation@dev + uses: Lombiq/GitHub-Actions/.github/actions/add-azure-application-insights-release-annotation@issue/LMBQ-178 with: release-name: 'Swap #${{ github.run_number }} from ${{ inputs.source-slot-name }} to ${{ inputs.destination-slot-name }}' application-insights-resource-id: ${{ inputs.application-insights-resource-id }} @@ -130,6 +130,6 @@ jobs: - name: Cancel Workflow on Failure if: failure() && inputs.cancel-workflow-on-failure == 'true' - uses: Lombiq/GitHub-Actions/.github/actions/cancel-workflow@dev + uses: Lombiq/GitHub-Actions/.github/actions/cancel-workflow@issue/LMBQ-178 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/tag-version-this-repo.yml b/.github/workflows/tag-version-this-repo.yml index 2105aea5d..b6a42310b 100644 --- a/.github/workflows/tag-version-this-repo.yml +++ b/.github/workflows/tag-version-this-repo.yml @@ -9,7 +9,7 @@ jobs: run: name: Tag Version Automation if: github.event.pusher.name != 'LombiqBot' - uses: Lombiq/GitHub-Actions/.github/workflows/tag-version.yml@dev + uses: Lombiq/GitHub-Actions/.github/workflows/tag-version.yml@issue/LMBQ-178 with: additional-pattern-include-list: '@("https://raw.githubusercontent.com/Lombiq/GitHub-Actions/(?[\w\./-]*)/.github")' secrets: diff --git a/.github/workflows/tag-version.yml b/.github/workflows/tag-version.yml index a90ab9852..ff757261e 100644 --- a/.github/workflows/tag-version.yml +++ b/.github/workflows/tag-version.yml @@ -74,7 +74,7 @@ jobs: shell: pwsh steps: - name: Checkout Repository - uses: Lombiq/GitHub-Actions/.github/actions/checkout@dev + uses: Lombiq/GitHub-Actions/.github/actions/checkout@issue/LMBQ-178 with: token: ${{ secrets.TAG_VERSION_TOKEN }} @@ -87,7 +87,7 @@ jobs: "tagname=$tagname" >> $Env:GITHUB_OUTPUT - name: Set Ref for GitHub Actions and Workflows - uses: Lombiq/GitHub-Actions/.github/actions/set-gha-refs@dev + uses: Lombiq/GitHub-Actions/.github/actions/set-gha-refs@issue/LMBQ-178 with: path-include-list: ${{ inputs.path-include-list }} file-include-list: ${{ inputs.file-include-list }} @@ -106,7 +106,7 @@ jobs: run: git push --tags --force - name: Create Release - uses: Lombiq/GitHub-Actions/.github/actions/release-action@dev + uses: Lombiq/GitHub-Actions/.github/actions/release-action@issue/LMBQ-178 # This is to prevent creating releases when pushing tags for issue-specific pre-releases like # v4.3.1-alpha.osoe-86. if: "!contains(steps.determine-tag.outputs.tagname, '-')" diff --git a/.github/workflows/test-analysis-failure.yml b/.github/workflows/test-analysis-failure.yml index 42771d56d..7470ce042 100644 --- a/.github/workflows/test-analysis-failure.yml +++ b/.github/workflows/test-analysis-failure.yml @@ -74,20 +74,20 @@ jobs: timeout-minutes: ${{ inputs.timeout-minutes }} steps: - name: Checkout - uses: Lombiq/GitHub-Actions/.github/actions/checkout@dev + uses: Lombiq/GitHub-Actions/.github/actions/checkout@issue/LMBQ-178 with: token: ${{ secrets.CHECKOUT_TOKEN }} - name: Set up .NET - uses: Lombiq/GitHub-Actions/.github/actions/setup-dotnet@dev + uses: Lombiq/GitHub-Actions/.github/actions/setup-dotnet@issue/LMBQ-178 with: dotnet-version: ${{ inputs.dotnet-version }} - name: Enable Node corepack - uses: Lombiq/GitHub-Actions/.github/actions/enable-corepack@dev + uses: Lombiq/GitHub-Actions/.github/actions/enable-corepack@issue/LMBQ-178 - name: Build and Static Code Analysis - uses: Lombiq/GitHub-Actions/.github/actions/build-dotnet@dev + uses: Lombiq/GitHub-Actions/.github/actions/build-dotnet@issue/LMBQ-178 with: directory: ${{ inputs.build-directory }} verbosity: quiet @@ -99,6 +99,6 @@ jobs: - name: Cancel Workflow on Failure if: failure() && inputs.cancel-workflow-on-failure == 'true' - uses: Lombiq/GitHub-Actions/.github/actions/cancel-workflow@dev + uses: Lombiq/GitHub-Actions/.github/actions/cancel-workflow@issue/LMBQ-178 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/validate-pull-request.yml b/.github/workflows/validate-pull-request.yml index d892b20cb..56af7337a 100644 --- a/.github/workflows/validate-pull-request.yml +++ b/.github/workflows/validate-pull-request.yml @@ -22,12 +22,12 @@ jobs: steps: - name: Update GitHub issue and Pull Request if: (github.event_name == 'pull_request_target' || github.event_name == 'pull_request') && github.event.action == 'opened' - uses: Lombiq/GitHub-Actions/.github/actions/update-github-issue-and-pull-request@dev + uses: Lombiq/GitHub-Actions/.github/actions/update-github-issue-and-pull-request@issue/LMBQ-178 env: JIRA_BASE_URL: ${{ secrets.JIRA_BASE_URL }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: Check for Merge Conflict in PR - uses: Lombiq/GitHub-Actions/.github/actions/check-merge-conflict@dev + uses: Lombiq/GitHub-Actions/.github/actions/check-merge-conflict@issue/LMBQ-178 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/validate-submodule-pull-request.yml b/.github/workflows/validate-submodule-pull-request.yml index 701bde3a1..827d5174f 100644 --- a/.github/workflows/validate-submodule-pull-request.yml +++ b/.github/workflows/validate-submodule-pull-request.yml @@ -34,14 +34,14 @@ jobs: steps: - name: Update GitHub issue and Pull Request if: (github.event_name == 'pull_request_target' || github.event_name == 'pull_request') && github.event.action == 'opened' - uses: Lombiq/GitHub-Actions/.github/actions/update-github-issue-and-pull-request@dev + uses: Lombiq/GitHub-Actions/.github/actions/update-github-issue-and-pull-request@issue/LMBQ-178 env: JIRA_BASE_URL: ${{ secrets.JIRA_BASE_URL }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: Ensure Parent PR Exists if: github.event.pull_request != '' - uses: Lombiq/GitHub-Actions/.github/actions/verify-submodule-pull-request@dev + uses: Lombiq/GitHub-Actions/.github/actions/verify-submodule-pull-request@issue/LMBQ-178 env: GITHUB_TOKEN: ${{ secrets.PARENT_TOKEN != '' && secrets.PARENT_TOKEN || secrets.GITHUB_TOKEN }} with: diff --git a/.github/workflows/validate-this-gha-refs.yml b/.github/workflows/validate-this-gha-refs.yml index 5a22c5c7e..741ea19d0 100644 --- a/.github/workflows/validate-this-gha-refs.yml +++ b/.github/workflows/validate-this-gha-refs.yml @@ -17,18 +17,18 @@ jobs: github.event_name == 'pull_request' || (github.event_name == 'pull_request_review' && github.event.review.state == 'approved') || github.event_name == 'merge_group' - uses: Lombiq/GitHub-Actions/.github/actions/checkout@dev + uses: Lombiq/GitHub-Actions/.github/actions/checkout@issue/LMBQ-178 with: fetch-depth: 0 - name: Checkout Repository (Push) if: github.event_name == 'push' - uses: Lombiq/GitHub-Actions/.github/actions/checkout@dev + uses: Lombiq/GitHub-Actions/.github/actions/checkout@issue/LMBQ-178 - name: Check Merge Queue Adds id: check-merge-queue-adds if: github.event_name == 'pull_request' || (github.event_name == 'pull_request_review' && github.event.review.state == 'approved') - uses: Lombiq/GitHub-Actions/.github/actions/check-merge-queue-adds@dev + uses: Lombiq/GitHub-Actions/.github/actions/check-merge-queue-adds@issue/LMBQ-178 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} @@ -53,7 +53,7 @@ jobs: github.event_name == 'pull_request' || (github.event_name == 'pull_request_review' && github.event.review.state == 'approved') || github.event_name == 'merge_group' - uses: Lombiq/GitHub-Actions/.github/actions/get-changed-files-from-git-diff@dev + uses: Lombiq/GitHub-Actions/.github/actions/get-changed-files-from-git-diff@issue/LMBQ-178 with: left-commit: ${{ github.event_name == 'merge_group' && github.event.merge_group.base_sha || github.event.pull_request.base.sha }} right-commit: ${{ github.sha }} @@ -65,7 +65,7 @@ jobs: github.event_name == 'pull_request' || (github.event_name == 'pull_request_review' && github.event.review.state == 'approved') || github.event_name == 'merge_group' - uses: Lombiq/GitHub-Actions/.github/actions/get-changed-gha-items@dev + uses: Lombiq/GitHub-Actions/.github/actions/get-changed-gha-items@issue/LMBQ-178 with: file-include-list: ${{ steps.git-diff.outputs.changed-files }} @@ -87,7 +87,7 @@ jobs: - name: Check PR Reviews id: check-pr-reviews if: github.event_name == 'pull_request' || (github.event_name == 'pull_request_review' && github.event.review.state == 'approved') - uses: Lombiq/GitHub-Actions/.github/actions/check-pull-request-reviews@dev + uses: Lombiq/GitHub-Actions/.github/actions/check-pull-request-reviews@issue/LMBQ-178 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} @@ -137,11 +137,11 @@ jobs: (github.event_name == 'pull_request_review' && github.event.review.state == 'approved') || github.event_name == 'merge_group') && steps.add-prefix.outputs.prefixed-files != '@()' - uses: Lombiq/GitHub-Actions/.github/actions/verify-gha-refs@dev + uses: Lombiq/GitHub-Actions/.github/actions/verify-gha-refs@issue/LMBQ-178 with: called-repo-base-include-list: ${{ steps.add-prefix.outputs.prefixed-files }} expected-ref: ${{ steps.determine-ref.outputs.expected-ref }} - name: Verify GitHub Actions Items Match Expected Ref (Push) if: github.event_name == 'push' - uses: Lombiq/GitHub-Actions/.github/actions/verify-gha-refs@dev + uses: Lombiq/GitHub-Actions/.github/actions/verify-gha-refs@issue/LMBQ-178 diff --git a/.github/workflows/validate-this-pull-request.yml b/.github/workflows/validate-this-pull-request.yml index c5abe45dc..1e7be09cf 100644 --- a/.github/workflows/validate-this-pull-request.yml +++ b/.github/workflows/validate-this-pull-request.yml @@ -7,4 +7,4 @@ on: jobs: validate-pull-request: - uses: Lombiq/GitHub-Actions/.github/workflows/validate-submodule-pull-request.yml@dev + uses: Lombiq/GitHub-Actions/.github/workflows/validate-submodule-pull-request.yml@issue/LMBQ-178 diff --git a/.github/workflows/yaml-lint-this-repo.yml b/.github/workflows/yaml-lint-this-repo.yml index 430585523..dc1c44b35 100644 --- a/.github/workflows/yaml-lint-this-repo.yml +++ b/.github/workflows/yaml-lint-this-repo.yml @@ -10,7 +10,7 @@ on: jobs: yaml-linting: name: YAML Linting - uses: Lombiq/GitHub-Actions/.github/workflows/yaml-lint.yml@dev + uses: Lombiq/GitHub-Actions/.github/workflows/yaml-lint.yml@issue/LMBQ-178 with: config-file-path: .trunk/configs/.yamllint.yaml search-path: . diff --git a/.github/workflows/yaml-lint.yml b/.github/workflows/yaml-lint.yml index 2c1d82db0..20f2dd910 100644 --- a/.github/workflows/yaml-lint.yml +++ b/.github/workflows/yaml-lint.yml @@ -38,18 +38,18 @@ jobs: timeout-minutes: ${{ inputs.timeout-minutes }} steps: - name: Checkout - uses: Lombiq/GitHub-Actions/.github/actions/checkout@dev + uses: Lombiq/GitHub-Actions/.github/actions/checkout@issue/LMBQ-178 with: token: ${{ secrets.CHECKOUT_TOKEN }} - name: YAML Linting - uses: Lombiq/GitHub-Actions/.github/actions/yaml-lint@dev + uses: Lombiq/GitHub-Actions/.github/actions/yaml-lint@issue/LMBQ-178 with: config-file-path: ${{ inputs.config-file-path }} search-path: ${{ inputs.search-path }} - name: Cancel Workflow on Failure if: failure() && inputs.cancel-workflow-on-failure == 'true' - uses: Lombiq/GitHub-Actions/.github/actions/cancel-workflow@dev + uses: Lombiq/GitHub-Actions/.github/actions/cancel-workflow@issue/LMBQ-178 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} From 0cec6870005f824913296c4c9622f5e6d9fae85e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zolt=C3=A1n=20Leh=C3=B3czky?= Date: Sat, 10 Aug 2024 18:49:51 +0200 Subject: [PATCH 08/31] Fixing check-spelling repo reference --- .github/actions/spelling/action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/actions/spelling/action.yml b/.github/actions/spelling/action.yml index e12df1ebd..5998ec2fb 100644 --- a/.github/actions/spelling/action.yml +++ b/.github/actions/spelling/action.yml @@ -160,7 +160,7 @@ runs: # source prefixes" step with the dictionary version tag that belongs to the commit of the release. See # https://github.com/check-spelling/check-spelling/blob/v0.0.22/action.yml#L67 for current version. # Also update check_extra_dictionaries below as necessary. - uses: Lombiq/check-spelling@issue/LMBQ-178-lombiq # Post-v0.0.22 with actions/cache update. + uses: Lombiq/check-spelling@issue/dev-lombiq # Post-v0.0.22 with actions/cache update. with: check_file_names: 1 config: ${{ inputs.configuration-path }} From 97c88e2f1909886448ea6765bd04ed02e622855b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zolt=C3=A1n=20Leh=C3=B3czky?= Date: Sat, 10 Aug 2024 19:03:38 +0200 Subject: [PATCH 09/31] And again --- .github/actions/spelling/action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/actions/spelling/action.yml b/.github/actions/spelling/action.yml index 5998ec2fb..042666cd8 100644 --- a/.github/actions/spelling/action.yml +++ b/.github/actions/spelling/action.yml @@ -160,7 +160,7 @@ runs: # source prefixes" step with the dictionary version tag that belongs to the commit of the release. See # https://github.com/check-spelling/check-spelling/blob/v0.0.22/action.yml#L67 for current version. # Also update check_extra_dictionaries below as necessary. - uses: Lombiq/check-spelling@issue/dev-lombiq # Post-v0.0.22 with actions/cache update. + uses: Lombiq/check-spelling@dev-lombiq # Post-v0.0.22 with actions/cache update. with: check_file_names: 1 config: ${{ inputs.configuration-path }} From 2ce51358c79204c96e26e772073e4b3aac15eb89 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zolt=C3=A1n=20Leh=C3=B3czky?= Date: Sat, 10 Aug 2024 19:03:59 +0200 Subject: [PATCH 10/31] Adding ability to pass environment variables to build-build-and-test-orchard-core --- .../set-environment-variables/action.yml | 21 +++++++++++++++++++ .../workflows/build-and-test-orchard-core.yml | 12 +++++++++++ 2 files changed, 33 insertions(+) create mode 100644 .github/actions/set-environment-variables/action.yml diff --git a/.github/actions/set-environment-variables/action.yml b/.github/actions/set-environment-variables/action.yml new file mode 100644 index 000000000..6c1bd8c81 --- /dev/null +++ b/.github/actions/set-environment-variables/action.yml @@ -0,0 +1,21 @@ +name: Set Environment Variables +description: > + Set environment variables from a JSON string. Intentionally not documented in Actions.md since it's only meant for + internal use. + +runs: + using: composite + steps: + - name: Setup Scripts + shell: pwsh + run: | + (Resolve-Path '${{ github.action_path }}/../../../Scripts').Path >> $Env:GITHUB_PATH + + - name: Set Environment Variables + shell: pwsh + run: | + $envVars = ConvertFrom-Json $env:ENVIRONMENT_VARIABLES_JSON + foreach ($key in $envVars.PSObject.Properties.Name) + { + Set-GitHubEnv $key $envVars.$key + } \ No newline at end of file diff --git a/.github/workflows/build-and-test-orchard-core.yml b/.github/workflows/build-and-test-orchard-core.yml index 5230cbfb6..a88ab0b69 100644 --- a/.github/workflows/build-and-test-orchard-core.yml +++ b/.github/workflows/build-and-test-orchard-core.yml @@ -8,6 +8,12 @@ on: description: > The GitHub token to authenticate checkout. Pass in a GitHub personal access token if authenticated submodules are used. + ENVIRONMENT_VARIABLES_JSON: + type: string + required: false + description: > + A JSON string containing key-value pairs of environment variables to be set. You can use this to pass in + arbitrary environment variables that can be used to e.g. customize the build or test execution. inputs: cancel-in-progress-for-this-pr: @@ -233,6 +239,12 @@ jobs: with: github_token: ${{ secrets.CHECKOUT_TOKEN }} + - name: Set Environment Variables + if: ${{ secrets.ENVIRONMENT_VARIABLES }} + uses: Lombiq/GitHub-Actions/.github/actions/set-environment-variables@issue/LMBQ-178 + env: + ENVIRONMENT_VARIABLES_JSON: ${{ secrets.ENVIRONMENT_VARIABLES_JSON }} + - name: Display ui-test-parallelism Obsolete Warning if: ${{ inputs.ui-test-parallelism != '-1' }} shell: pwsh From d4874812d0aef6d17e921af6d65dcf0fdacf778f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zolt=C3=A1n=20Leh=C3=B3czky?= Date: Sat, 10 Aug 2024 19:05:47 +0200 Subject: [PATCH 11/31] Syntax --- .github/workflows/build-and-test-orchard-core.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/build-and-test-orchard-core.yml b/.github/workflows/build-and-test-orchard-core.yml index a88ab0b69..be37ba18d 100644 --- a/.github/workflows/build-and-test-orchard-core.yml +++ b/.github/workflows/build-and-test-orchard-core.yml @@ -9,7 +9,6 @@ on: The GitHub token to authenticate checkout. Pass in a GitHub personal access token if authenticated submodules are used. ENVIRONMENT_VARIABLES_JSON: - type: string required: false description: > A JSON string containing key-value pairs of environment variables to be set. You can use this to pass in From d796d37ee4f5638f1cca0d09931cb5741ec19396 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zolt=C3=A1n=20Leh=C3=B3czky?= Date: Sat, 10 Aug 2024 19:06:40 +0200 Subject: [PATCH 12/31] Leftover rename --- .github/workflows/build-and-test-orchard-core.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build-and-test-orchard-core.yml b/.github/workflows/build-and-test-orchard-core.yml index be37ba18d..7af778292 100644 --- a/.github/workflows/build-and-test-orchard-core.yml +++ b/.github/workflows/build-and-test-orchard-core.yml @@ -239,7 +239,7 @@ jobs: github_token: ${{ secrets.CHECKOUT_TOKEN }} - name: Set Environment Variables - if: ${{ secrets.ENVIRONMENT_VARIABLES }} + if: ${{ secrets.ENVIRONMENT_VARIABLES_JSON }} uses: Lombiq/GitHub-Actions/.github/actions/set-environment-variables@issue/LMBQ-178 env: ENVIRONMENT_VARIABLES_JSON: ${{ secrets.ENVIRONMENT_VARIABLES_JSON }} From 5d37bcc8ad757cdf1502f5b45f8148062d324362 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zolt=C3=A1n=20Leh=C3=B3czky?= Date: Sat, 10 Aug 2024 19:10:10 +0200 Subject: [PATCH 13/31] GH workflow syntax --- .github/actions/set-environment-variables/action.yml | 6 ++++-- .github/workflows/build-and-test-orchard-core.yml | 1 - 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/actions/set-environment-variables/action.yml b/.github/actions/set-environment-variables/action.yml index 6c1bd8c81..1196bd889 100644 --- a/.github/actions/set-environment-variables/action.yml +++ b/.github/actions/set-environment-variables/action.yml @@ -1,17 +1,19 @@ name: Set Environment Variables description: > - Set environment variables from a JSON string. Intentionally not documented in Actions.md since it's only meant for - internal use. + Set environment variables from a JSON string of key-value pairs, passed in via the ENVIRONMENT_VARIABLES_JSON + environment variable. Intentionally not documented in Actions.md since it's only meant for internal use. runs: using: composite steps: - name: Setup Scripts + if: ${{ env.ENVIRONMENT_VARIABLES_JSON }} shell: pwsh run: | (Resolve-Path '${{ github.action_path }}/../../../Scripts').Path >> $Env:GITHUB_PATH - name: Set Environment Variables + if: ${{ env.ENVIRONMENT_VARIABLES_JSON }} shell: pwsh run: | $envVars = ConvertFrom-Json $env:ENVIRONMENT_VARIABLES_JSON diff --git a/.github/workflows/build-and-test-orchard-core.yml b/.github/workflows/build-and-test-orchard-core.yml index 7af778292..377a9bbad 100644 --- a/.github/workflows/build-and-test-orchard-core.yml +++ b/.github/workflows/build-and-test-orchard-core.yml @@ -239,7 +239,6 @@ jobs: github_token: ${{ secrets.CHECKOUT_TOKEN }} - name: Set Environment Variables - if: ${{ secrets.ENVIRONMENT_VARIABLES_JSON }} uses: Lombiq/GitHub-Actions/.github/actions/set-environment-variables@issue/LMBQ-178 env: ENVIRONMENT_VARIABLES_JSON: ${{ secrets.ENVIRONMENT_VARIABLES_JSON }} From 4c225955ef528764b9cdbcf67a29e6a0cc7ca45e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zolt=C3=A1n=20Leh=C3=B3czky?= Date: Sat, 10 Aug 2024 19:12:15 +0200 Subject: [PATCH 14/31] Linting error --- .github/actions/set-environment-variables/action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/actions/set-environment-variables/action.yml b/.github/actions/set-environment-variables/action.yml index 1196bd889..bf9d7efc4 100644 --- a/.github/actions/set-environment-variables/action.yml +++ b/.github/actions/set-environment-variables/action.yml @@ -20,4 +20,4 @@ runs: foreach ($key in $envVars.PSObject.Properties.Name) { Set-GitHubEnv $key $envVars.$key - } \ No newline at end of file + } From 499ed47d3b54890f0971e2df264d6d9767244310 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zolt=C3=A1n=20Leh=C3=B3czky?= Date: Sat, 10 Aug 2024 22:35:00 +0200 Subject: [PATCH 15/31] Debug output --- .github/workflows/build-and-test-orchard-core.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/build-and-test-orchard-core.yml b/.github/workflows/build-and-test-orchard-core.yml index 377a9bbad..43df901c8 100644 --- a/.github/workflows/build-and-test-orchard-core.yml +++ b/.github/workflows/build-and-test-orchard-core.yml @@ -231,6 +231,11 @@ jobs: }} cancel-in-progress: ${{ inputs.cancel-in-progress-for-this-pr == 'true' }} steps: + - env: + GITHUB_CONTEXT: ${{ toJSON(github) }} + shell: pwsh + run: Write-Output $Env:GITHUB_CONTEXT + # This has to be the first step so it can collect data about the whole workflow run. - name: Collect Workflow Telemetry if: inputs.collect-workflow-telemetry == 'true' From 47653aecc42670325c3d7b0ffce9b8acedc25e7b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zolt=C3=A1n=20Leh=C3=B3czky?= Date: Sat, 10 Aug 2024 22:35:32 +0200 Subject: [PATCH 16/31] Syntax --- .github/workflows/build-and-test-orchard-core.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build-and-test-orchard-core.yml b/.github/workflows/build-and-test-orchard-core.yml index 43df901c8..697339c71 100644 --- a/.github/workflows/build-and-test-orchard-core.yml +++ b/.github/workflows/build-and-test-orchard-core.yml @@ -232,7 +232,7 @@ jobs: cancel-in-progress: ${{ inputs.cancel-in-progress-for-this-pr == 'true' }} steps: - env: - GITHUB_CONTEXT: ${{ toJSON(github) }} + GITHUB_CONTEXT: ${{ toJSON(github) }} shell: pwsh run: Write-Output $Env:GITHUB_CONTEXT From 1c8f44edafa63dee1339990d99d2b1689bd43b34 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zolt=C3=A1n=20Leh=C3=B3czky?= Date: Sat, 10 Aug 2024 22:37:48 +0200 Subject: [PATCH 17/31] Remove debug output --- .github/workflows/build-and-test-orchard-core.yml | 5 ----- 1 file changed, 5 deletions(-) diff --git a/.github/workflows/build-and-test-orchard-core.yml b/.github/workflows/build-and-test-orchard-core.yml index 697339c71..377a9bbad 100644 --- a/.github/workflows/build-and-test-orchard-core.yml +++ b/.github/workflows/build-and-test-orchard-core.yml @@ -231,11 +231,6 @@ jobs: }} cancel-in-progress: ${{ inputs.cancel-in-progress-for-this-pr == 'true' }} steps: - - env: - GITHUB_CONTEXT: ${{ toJSON(github) }} - shell: pwsh - run: Write-Output $Env:GITHUB_CONTEXT - # This has to be the first step so it can collect data about the whole workflow run. - name: Collect Workflow Telemetry if: inputs.collect-workflow-telemetry == 'true' From c4155ffe05fce16ef9b897226c4f580e0b0e5d14 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zolt=C3=A1n=20Leh=C3=B3czky?= Date: Sat, 10 Aug 2024 22:38:28 +0200 Subject: [PATCH 18/31] Revert "Remove debug output" This reverts commit 1c8f44edafa63dee1339990d99d2b1689bd43b34. --- .github/workflows/build-and-test-orchard-core.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/build-and-test-orchard-core.yml b/.github/workflows/build-and-test-orchard-core.yml index 377a9bbad..697339c71 100644 --- a/.github/workflows/build-and-test-orchard-core.yml +++ b/.github/workflows/build-and-test-orchard-core.yml @@ -231,6 +231,11 @@ jobs: }} cancel-in-progress: ${{ inputs.cancel-in-progress-for-this-pr == 'true' }} steps: + - env: + GITHUB_CONTEXT: ${{ toJSON(github) }} + shell: pwsh + run: Write-Output $Env:GITHUB_CONTEXT + # This has to be the first step so it can collect data about the whole workflow run. - name: Collect Workflow Telemetry if: inputs.collect-workflow-telemetry == 'true' From cdc8e52b3c71e1404d730150faa5b3a56f9d64b7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zolt=C3=A1n=20Leh=C3=B3czky?= Date: Sun, 11 Aug 2024 03:06:03 +0200 Subject: [PATCH 19/31] Reapply "Remove debug output" This reverts commit c4155ffe05fce16ef9b897226c4f580e0b0e5d14. --- .github/workflows/build-and-test-orchard-core.yml | 5 ----- 1 file changed, 5 deletions(-) diff --git a/.github/workflows/build-and-test-orchard-core.yml b/.github/workflows/build-and-test-orchard-core.yml index 697339c71..377a9bbad 100644 --- a/.github/workflows/build-and-test-orchard-core.yml +++ b/.github/workflows/build-and-test-orchard-core.yml @@ -231,11 +231,6 @@ jobs: }} cancel-in-progress: ${{ inputs.cancel-in-progress-for-this-pr == 'true' }} steps: - - env: - GITHUB_CONTEXT: ${{ toJSON(github) }} - shell: pwsh - run: Write-Output $Env:GITHUB_CONTEXT - # This has to be the first step so it can collect data about the whole workflow run. - name: Collect Workflow Telemetry if: inputs.collect-workflow-telemetry == 'true' From d33a32e74b75da6015b4d5e085fb478aa703beff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zolt=C3=A1n=20Leh=C3=B3czky?= Date: Sun, 11 Aug 2024 15:09:37 +0200 Subject: [PATCH 20/31] Adding ENVIRONMENT_VARIABLES_JSON to the other build workflows too --- .github/workflows/build-and-test-dotnet.yml | 10 ++++++++++ .github/workflows/msbuild-and-test.yml | 10 ++++++++++ .github/workflows/publish-nuget.yml | 12 ++++++++++++ 3 files changed, 32 insertions(+) diff --git a/.github/workflows/build-and-test-dotnet.yml b/.github/workflows/build-and-test-dotnet.yml index b2a41f22a..9890c4154 100644 --- a/.github/workflows/build-and-test-dotnet.yml +++ b/.github/workflows/build-and-test-dotnet.yml @@ -8,6 +8,11 @@ on: description: > The GitHub token to authenticate checkout. Pass in a GitHub personal access token if authenticated submodules are used. + ENVIRONMENT_VARIABLES_JSON: + required: false + description: > + A JSON string containing key-value pairs of environment variables to be set. You can use this to pass in + arbitrary environment variables that can be used to e.g. customize the build or test execution. inputs: cancel-in-progress-for-this-pr: @@ -211,6 +216,11 @@ jobs: with: github_token: ${{ secrets.CHECKOUT_TOKEN }} + - name: Set Environment Variables + uses: Lombiq/GitHub-Actions/.github/actions/set-environment-variables@issue/LMBQ-178 + env: + ENVIRONMENT_VARIABLES_JSON: ${{ secrets.ENVIRONMENT_VARIABLES_JSON }} + - name: Checkout uses: Lombiq/GitHub-Actions/.github/actions/checkout@issue/LMBQ-178 with: diff --git a/.github/workflows/msbuild-and-test.yml b/.github/workflows/msbuild-and-test.yml index 6385b1d6b..a2b86d662 100644 --- a/.github/workflows/msbuild-and-test.yml +++ b/.github/workflows/msbuild-and-test.yml @@ -26,6 +26,11 @@ on: description: > The GitHub token to authenticate checkout. Pass in a GitHub personal access token if authenticated submodules are used. + ENVIRONMENT_VARIABLES_JSON: + required: false + description: > + A JSON string containing key-value pairs of environment variables to be set. You can use this to pass in + arbitrary environment variables that can be used to e.g. customize the build or test execution. inputs: cancel-in-progress-for-this-pr: @@ -115,6 +120,11 @@ jobs: with: github_token: ${{ secrets.CHECKOUT_TOKEN }} + - name: Set Environment Variables + uses: Lombiq/GitHub-Actions/.github/actions/set-environment-variables@issue/LMBQ-178 + env: + ENVIRONMENT_VARIABLES_JSON: ${{ secrets.ENVIRONMENT_VARIABLES_JSON }} + - name: Checkout uses: Lombiq/GitHub-Actions/.github/actions/checkout@issue/LMBQ-178 with: diff --git a/.github/workflows/publish-nuget.yml b/.github/workflows/publish-nuget.yml index 01b3130f1..f2331222a 100644 --- a/.github/workflows/publish-nuget.yml +++ b/.github/workflows/publish-nuget.yml @@ -11,6 +11,13 @@ on: # We can't access org secrets here so they need to be passed in. API_KEY: required: true + description: > + The API key to authenticate with the NuGet server when pushing packages. + ENVIRONMENT_VARIABLES_JSON: + required: false + description: > + A JSON string containing key-value pairs of environment variables to be set. You can use this to pass in + arbitrary environment variables that can be used to e.g. customize the build or test execution. inputs: cancel-workflow-on-failure: @@ -68,6 +75,11 @@ jobs: runs-on: ubuntu-22.04 timeout-minutes: ${{ inputs.timeout-minutes }} steps: + - name: Set Environment Variables + uses: Lombiq/GitHub-Actions/.github/actions/set-environment-variables@issue/LMBQ-178 + env: + ENVIRONMENT_VARIABLES_JSON: ${{ secrets.ENVIRONMENT_VARIABLES_JSON }} + - name: Checkout uses: Lombiq/GitHub-Actions/.github/actions/checkout@issue/LMBQ-178 with: From 5ae1bde52bcb14330614ef6099d9f9850345dbc6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zolt=C3=A1n=20Leh=C3=B3czky?= Date: Sun, 11 Aug 2024 19:36:31 +0200 Subject: [PATCH 21/31] Masking env vars passed to build workflows --- .github/actions/set-environment-variables/action.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/actions/set-environment-variables/action.yml b/.github/actions/set-environment-variables/action.yml index bf9d7efc4..2eafbdeab 100644 --- a/.github/actions/set-environment-variables/action.yml +++ b/.github/actions/set-environment-variables/action.yml @@ -19,5 +19,6 @@ runs: $envVars = ConvertFrom-Json $env:ENVIRONMENT_VARIABLES_JSON foreach ($key in $envVars.PSObject.Properties.Name) { + Write-Output "::add-mask::$($envVars.$key)" Set-GitHubEnv $key $envVars.$key } From 31fb0d71bd867ed32b628e66d78901a2fbe40792 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zolt=C3=A1n=20Leh=C3=B3czky?= Date: Sun, 11 Aug 2024 20:42:25 +0200 Subject: [PATCH 22/31] Adding "iframes" to spelling --- .github/actions/spelling/action.yml | 2 +- .github/actions/spelling/dictionaries/Lombiq.common.txt | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/actions/spelling/action.yml b/.github/actions/spelling/action.yml index 042666cd8..063fb5952 100644 --- a/.github/actions/spelling/action.yml +++ b/.github/actions/spelling/action.yml @@ -130,7 +130,7 @@ runs: shell: pwsh run: | $defaultPrefixes = @{ - 'lombiq-lgha' = 'https://raw.githubusercontent.com/Lombiq/GitHub-Actions/dev/.github/actions/spelling/' + 'lombiq-lgha' = 'https://raw.githubusercontent.com/Lombiq/GitHub-Actions/issue/LMBQ-178/.github/actions/spelling/' 'cspell' = 'https://raw.githubusercontent.com/check-spelling/cspell-dicts/v20230509/dictionaries/' } diff --git a/.github/actions/spelling/dictionaries/Lombiq.common.txt b/.github/actions/spelling/dictionaries/Lombiq.common.txt index 26aa5c157..8f680921d 100644 --- a/.github/actions/spelling/dictionaries/Lombiq.common.txt +++ b/.github/actions/spelling/dictionaries/Lombiq.common.txt @@ -48,6 +48,7 @@ hca HHmmss hotfixes idx +iframes iis img importmap From 1382e54dc8afc4c8c998630171e119e5d98000a5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zolt=C3=A1n=20Leh=C3=B3czky?= Date: Sun, 11 Aug 2024 20:44:23 +0200 Subject: [PATCH 23/31] More common words --- .github/actions/spelling/dictionaries/Lombiq.common.txt | 1 + .github/actions/spelling/dictionaries/Security.txt | 1 + 2 files changed, 2 insertions(+) diff --git a/.github/actions/spelling/dictionaries/Lombiq.common.txt b/.github/actions/spelling/dictionaries/Lombiq.common.txt index 8f680921d..d7f889c6f 100644 --- a/.github/actions/spelling/dictionaries/Lombiq.common.txt +++ b/.github/actions/spelling/dictionaries/Lombiq.common.txt @@ -47,6 +47,7 @@ hastlayer hca HHmmss hotfixes +htmlvalidate idx iframes iis diff --git a/.github/actions/spelling/dictionaries/Security.txt b/.github/actions/spelling/dictionaries/Security.txt index 2e15e8caa..459c4be14 100644 --- a/.github/actions/spelling/dictionaries/Security.txt +++ b/.github/actions/spelling/dictionaries/Security.txt @@ -1,5 +1,6 @@ amd clickjacking +CORS Entra nosniff openapi From 7a36718fb35becbc95a04f1766eb3d9a17613a1d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zolt=C3=A1n=20Leh=C3=B3czky?= Date: Sun, 11 Aug 2024 22:03:09 +0200 Subject: [PATCH 24/31] Re-adding mistakenly removed code --- .github/actions/test-dotnet/Invoke-SolutionTests.ps1 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/actions/test-dotnet/Invoke-SolutionTests.ps1 b/.github/actions/test-dotnet/Invoke-SolutionTests.ps1 index 454051820..aa9e783ed 100644 --- a/.github/actions/test-dotnet/Invoke-SolutionTests.ps1 +++ b/.github/actions/test-dotnet/Invoke-SolutionTests.ps1 @@ -97,7 +97,8 @@ else exit 1 } - +Set-GitHubOutput 'test-count' $tests.Length +Set-GitHubOutput 'dotnet-test-hang-dump' 0 Write-Output "Starting to execute tests from $($tests.Length) project(s)." From 67344d04a33b6669286c85865b8133f4805a2ebd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zolt=C3=A1n=20Leh=C3=B3czky?= Date: Mon, 12 Aug 2024 14:27:24 +0200 Subject: [PATCH 25/31] Informational output --- .github/actions/set-environment-variables/action.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/actions/set-environment-variables/action.yml b/.github/actions/set-environment-variables/action.yml index 2eafbdeab..ea6fd22b4 100644 --- a/.github/actions/set-environment-variables/action.yml +++ b/.github/actions/set-environment-variables/action.yml @@ -19,6 +19,7 @@ runs: $envVars = ConvertFrom-Json $env:ENVIRONMENT_VARIABLES_JSON foreach ($key in $envVars.PSObject.Properties.Name) { + Write-Output "Setting environment variable $key." Write-Output "::add-mask::$($envVars.$key)" Set-GitHubEnv $key $envVars.$key } From a6fbc2eca7b9262ad0c38345b25cec1c00a3af38 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zolt=C3=A1n=20Leh=C3=B3czky?= Date: Mon, 12 Aug 2024 14:44:43 +0200 Subject: [PATCH 26/31] Ability to pass the repository explicitly to build-and-test-orchard-core --- .github/workflows/build-and-test-orchard-core.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/build-and-test-orchard-core.yml b/.github/workflows/build-and-test-orchard-core.yml index 377a9bbad..a859fd1cd 100644 --- a/.github/workflows/build-and-test-orchard-core.yml +++ b/.github/workflows/build-and-test-orchard-core.yml @@ -41,6 +41,12 @@ on: description: > Stringified JSON array with the name of the type of machine(s) to run the workflow under, e.g. '["ubuntu-22.04"]' or '["ubuntu-22.04", "windows-2022"]'. + repository: + description: > + Repository name with owner to git checkout, if not the current repository. E.g. "Lombiq/GitHub-Actions". + Defaults to the current repository. + type: string + default: ${{ github.repository }} dotnet-version: type: string default: 8.0.301 @@ -257,6 +263,7 @@ jobs: - name: Checkout uses: Lombiq/GitHub-Actions/.github/actions/checkout@issue/LMBQ-178 with: + repository: ${{ inputs.repository }} token: ${{ secrets.CHECKOUT_TOKEN }} - name: Set up .NET From 65f9bb03dac7fca80d32541ff331e611c6c7d9d7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zolt=C3=A1n=20Leh=C3=B3czky?= Date: Mon, 12 Aug 2024 14:53:48 +0200 Subject: [PATCH 27/31] Ability to pass a ref to build-and-test-orchard-core too --- .github/workflows/build-and-test-orchard-core.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/build-and-test-orchard-core.yml b/.github/workflows/build-and-test-orchard-core.yml index a859fd1cd..1d8f1abf0 100644 --- a/.github/workflows/build-and-test-orchard-core.yml +++ b/.github/workflows/build-and-test-orchard-core.yml @@ -47,6 +47,12 @@ on: Defaults to the current repository. type: string default: ${{ github.repository }} + repository-ref: + description: > + The branch, tag or SHA to checkout. When checking out the repository that triggered the workflow, this + defaults to the reference or SHA for that event. Otherwise, uses the default branch. + type: string + default: '' dotnet-version: type: string default: 8.0.301 @@ -264,6 +270,7 @@ jobs: uses: Lombiq/GitHub-Actions/.github/actions/checkout@issue/LMBQ-178 with: repository: ${{ inputs.repository }} + ref: ${{ inputs.repository-ref }} token: ${{ secrets.CHECKOUT_TOKEN }} - name: Set up .NET From 075fb6ea00c16b1adc8a6faeeb599be5314f009e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zolt=C3=A1n=20Leh=C3=B3czky?= Date: Mon, 12 Aug 2024 15:09:45 +0200 Subject: [PATCH 28/31] Ability to pass repository details in the other build workflows too --- .github/workflows/build-and-test-dotnet.yml | 14 ++++++++++++++ .github/workflows/msbuild-and-test.yml | 14 ++++++++++++++ 2 files changed, 28 insertions(+) diff --git a/.github/workflows/build-and-test-dotnet.yml b/.github/workflows/build-and-test-dotnet.yml index 9890c4154..010feaee9 100644 --- a/.github/workflows/build-and-test-dotnet.yml +++ b/.github/workflows/build-and-test-dotnet.yml @@ -41,6 +41,18 @@ on: description: > Stringified JSON array with the name of the type of machine(s) to run the workflow under, e.g. '["ubuntu-22.04"]' or '["ubuntu-22.04", "windows-2022"]'. + repository: + description: > + Repository name with owner to git checkout, if not the current repository. E.g. "Lombiq/GitHub-Actions". + Defaults to the current repository. + type: string + default: ${{ github.repository }} + repository-ref: + description: > + The branch, tag or SHA to checkout. When checking out the repository that triggered the workflow, this + defaults to the reference or SHA for that event. Otherwise, uses the default branch. + type: string + default: '' dotnet-version: type: string default: 8.0.301 @@ -224,6 +236,8 @@ jobs: - name: Checkout uses: Lombiq/GitHub-Actions/.github/actions/checkout@issue/LMBQ-178 with: + repository: ${{ inputs.repository }} + ref: ${{ inputs.repository-ref }} token: ${{ secrets.CHECKOUT_TOKEN }} - name: Set up .NET diff --git a/.github/workflows/msbuild-and-test.yml b/.github/workflows/msbuild-and-test.yml index a2b86d662..c7b0b701d 100644 --- a/.github/workflows/msbuild-and-test.yml +++ b/.github/workflows/msbuild-and-test.yml @@ -56,6 +56,18 @@ on: default: windows-2022 description: > The machine type to run the workflow under, e.g. "windows-2022". Needs to be Windows. + repository: + description: > + Repository name with owner to git checkout, if not the current repository. E.g. "Lombiq/GitHub-Actions". + Defaults to the current repository. + type: string + default: ${{ github.repository }} + repository-ref: + description: > + The branch, tag or SHA to checkout. When checking out the repository that triggered the workflow, this + defaults to the reference or SHA for that event. Otherwise, uses the default branch. + type: string + default: '' build-directory: type: string default: . @@ -128,6 +140,8 @@ jobs: - name: Checkout uses: Lombiq/GitHub-Actions/.github/actions/checkout@issue/LMBQ-178 with: + repository: ${{ inputs.repository }} + ref: ${{ inputs.repository-ref }} token: ${{ secrets.CHECKOUT_TOKEN }} - name: Enable Node corepack From ae3b01eee6c2601a65c909a5b64a219055bb77ce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zolt=C3=A1n=20Leh=C3=B3czky?= Date: Wed, 14 Aug 2024 15:01:53 +0200 Subject: [PATCH 29/31] Renaming Invoke-SolutionTests to reflect that it also supports projects --- ...ke-SolutionTests.ps1 => Invoke-SolutionOrProjectTests.ps1} | 0 .github/actions/test-dotnet/Test-SolutionTests.ps1 | 4 ++-- .github/actions/test-dotnet/action.yml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) rename .github/actions/test-dotnet/{Invoke-SolutionTests.ps1 => Invoke-SolutionOrProjectTests.ps1} (100%) diff --git a/.github/actions/test-dotnet/Invoke-SolutionTests.ps1 b/.github/actions/test-dotnet/Invoke-SolutionOrProjectTests.ps1 similarity index 100% rename from .github/actions/test-dotnet/Invoke-SolutionTests.ps1 rename to .github/actions/test-dotnet/Invoke-SolutionOrProjectTests.ps1 diff --git a/.github/actions/test-dotnet/Test-SolutionTests.ps1 b/.github/actions/test-dotnet/Test-SolutionTests.ps1 index a21719476..34653263e 100644 --- a/.github/actions/test-dotnet/Test-SolutionTests.ps1 +++ b/.github/actions/test-dotnet/Test-SolutionTests.ps1 @@ -1,6 +1,6 @@ <# .Synopsis - Local testing script to run the Invoke-SolutionTests script. This needs to be invoked from the solution folder. + Local testing script to run the Invoke-SolutionOrProjectTests script. This needs to be invoked from the solution folder. #> $switches = @{ @@ -12,4 +12,4 @@ $switches = @{ TestProcessTimeout = '600000' } -.\tools\Lombiq.GitHub.Actions\.github\actions\test-dotnet\Invoke-SolutionTests.ps1 @switches +.\tools\Lombiq.GitHub.Actions\.github\actions\test-dotnet\Invoke-SolutionOrProjectTests.ps1 @switches \ No newline at end of file diff --git a/.github/actions/test-dotnet/action.yml b/.github/actions/test-dotnet/action.yml index 1cdbf767a..ce8a416a5 100644 --- a/.github/actions/test-dotnet/action.yml +++ b/.github/actions/test-dotnet/action.yml @@ -112,7 +112,7 @@ runs: EnableDiagnosticMode = $${{ inputs.enable-diagnostic-mode }} } - Invoke-SolutionTests @switches + Invoke-SolutionOrProjectTests @switches # Note that uploading the failure dumps would fail under Windows if the path were too long, regardless of # LongPathsEnabled, see: https://github.com/actions/upload-artifact/issues/309. To get around that we merge all From eb1ed640ffdd2e6d41b77716af68b1ab4debb640 Mon Sep 17 00:00:00 2001 From: Szabolcs Deme Date: Thu, 15 Aug 2024 02:15:27 +0200 Subject: [PATCH 30/31] Adding newline at the end of the file --- .github/actions/test-dotnet/Test-SolutionTests.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/actions/test-dotnet/Test-SolutionTests.ps1 b/.github/actions/test-dotnet/Test-SolutionTests.ps1 index 34653263e..8d7fe19ae 100644 --- a/.github/actions/test-dotnet/Test-SolutionTests.ps1 +++ b/.github/actions/test-dotnet/Test-SolutionTests.ps1 @@ -12,4 +12,4 @@ $switches = @{ TestProcessTimeout = '600000' } -.\tools\Lombiq.GitHub.Actions\.github\actions\test-dotnet\Invoke-SolutionOrProjectTests.ps1 @switches \ No newline at end of file +.\tools\Lombiq.GitHub.Actions\.github\actions\test-dotnet\Invoke-SolutionOrProjectTests.ps1 @switches From 54aabeb17c9d3b04f902220f44a4d8ce38df94dd Mon Sep 17 00:00:00 2001 From: Szabolcs Deme Date: Thu, 15 Aug 2024 02:20:41 +0200 Subject: [PATCH 31/31] Updating action and workflow references to dev --- .../auto-merge-pull-request/action.yml | 4 +-- .../auto-transition-jira-issue/action.yml | 6 ++--- .github/actions/build-dotnet/action.yml | 2 +- .github/actions/checkout/action.yml | 2 +- .github/actions/markdown-lint/action.yml | 2 +- .../precompile-orchard1-app/action.yml | 6 ++--- .github/actions/publish-nuget/action.yml | 8 +++--- .github/actions/spelling/action.yml | 4 +-- .github/actions/test-dotnet/action.yml | 10 +++---- .../verify-dotnet-consolidation/action.yml | 2 +- .github/actions/workflow-telemetry/action.yml | 2 +- .github/workflows/build-and-test-dotnet.yml | 16 ++++++------ .../workflows/build-and-test-orchard-core.yml | 26 +++++++++---------- .github/workflows/build-dotnet.yml | 10 +++---- ...-for-community-activities-in-this-repo.yml | 2 +- ...e-jira-issues-for-community-activities.yml | 2 +- .../deploy-orchard1-to-azure-app-service.yml | 14 +++++----- .../workflows/deploy-to-azure-app-service.yml | 16 ++++++------ .github/workflows/markdown-lint-this-repo.yml | 2 +- .github/workflows/markdown-lint.yml | 6 ++--- .github/workflows/msbuild-and-test.yml | 16 ++++++------ .../post-pull-request-checks-automation.yml | 8 +++--- .github/workflows/publish-nuget.yml | 10 +++---- .github/workflows/reset-azure-environment.yml | 8 +++--- .github/workflows/spelling-this-repo.yml | 2 +- .github/workflows/spelling.yml | 10 +++---- .../workflows/swap-azure-web-app-slots.yml | 8 +++--- .../swap-orchard1-azure-web-app-slots.yml | 8 +++--- .github/workflows/tag-version-this-repo.yml | 2 +- .github/workflows/tag-version.yml | 6 ++--- .github/workflows/test-analysis-failure.yml | 10 +++---- .github/workflows/validate-pull-request.yml | 4 +-- .../validate-submodule-pull-request.yml | 4 +-- .github/workflows/validate-this-gha-refs.yml | 16 ++++++------ .../workflows/validate-this-pull-request.yml | 2 +- .github/workflows/yaml-lint-this-repo.yml | 2 +- .github/workflows/yaml-lint.yml | 6 ++--- 37 files changed, 132 insertions(+), 132 deletions(-) diff --git a/.github/actions/auto-merge-pull-request/action.yml b/.github/actions/auto-merge-pull-request/action.yml index 74225205e..32df66213 100644 --- a/.github/actions/auto-merge-pull-request/action.yml +++ b/.github/actions/auto-merge-pull-request/action.yml @@ -23,7 +23,7 @@ runs: id: check-mergeability # Fork PR runs won't have permissions to remove labels, nor do we want to allow auto-merging them. if: github.event.pull_request.head.repo.fork == false - uses: Lombiq/GitHub-Actions/.github/actions/check-pull-request-labels@issue/LMBQ-178 + uses: Lombiq/GitHub-Actions/.github/actions/check-pull-request-labels@dev with: label1: merge-if-checks-succeed label2: merge-and-resolve-jira-issue-if-checks-succeed @@ -37,7 +37,7 @@ runs: - name: Remove Label if: steps.check-mergeability.outputs.contains-label == 'true' - uses: Lombiq/GitHub-Actions/.github/actions/add-remove-label@issue/LMBQ-178 + uses: Lombiq/GitHub-Actions/.github/actions/add-remove-label@dev with: token: ${{ env.GITHUB_TOKEN }} labels: merge-if-checks-succeed diff --git a/.github/actions/auto-transition-jira-issue/action.yml b/.github/actions/auto-transition-jira-issue/action.yml index 5284c4e94..c953a2470 100644 --- a/.github/actions/auto-transition-jira-issue/action.yml +++ b/.github/actions/auto-transition-jira-issue/action.yml @@ -15,7 +15,7 @@ runs: - name: Check if Should Done id: check-done - uses: Lombiq/GitHub-Actions/.github/actions/check-pull-request-labels@issue/LMBQ-178 + uses: Lombiq/GitHub-Actions/.github/actions/check-pull-request-labels@dev with: label1: done-jira-issue-if-checks-succeed label2: dummy @@ -23,7 +23,7 @@ runs: - name: Check if Should Resolve id: check-resolve if: steps.check-done.outputs.contains-label == 'false' - uses: Lombiq/GitHub-Actions/.github/actions/check-pull-request-labels@issue/LMBQ-178 + uses: Lombiq/GitHub-Actions/.github/actions/check-pull-request-labels@dev with: label1: resolve-jira-issue-if-checks-succeed label2: merge-and-resolve-jira-issue-if-checks-succeed @@ -41,7 +41,7 @@ runs: Set-JiraIssueStatus @parameters - name: Remove Label - uses: Lombiq/GitHub-Actions/.github/actions/add-remove-label@issue/LMBQ-178 + uses: Lombiq/GitHub-Actions/.github/actions/add-remove-label@dev with: token: ${{ env.GITHUB_TOKEN }} labels: merge-and-resolve-jira-issue-if-checks-succeed, resolve-jira-issue-if-checks-succeed, done-jira-issue-if-checks-succeed diff --git a/.github/actions/build-dotnet/action.yml b/.github/actions/build-dotnet/action.yml index 24185492d..f0bba77b8 100644 --- a/.github/actions/build-dotnet/action.yml +++ b/.github/actions/build-dotnet/action.yml @@ -211,7 +211,7 @@ runs: Write-Output ("Solution or project build took {0:0.###} seconds." -f ($endTime - $startTime).TotalSeconds) - name: Upload MSBuild Binary Log - uses: Lombiq/GitHub-Actions/.github/actions/upload-artifact@issue/LMBQ-178 + uses: Lombiq/GitHub-Actions/.github/actions/upload-artifact@dev if: (success() || failure()) && inputs.create-binary-log == 'true' with: name: build-binary-log-${{ steps.build.outputs.artifact-name-suffix }}.binlog diff --git a/.github/actions/checkout/action.yml b/.github/actions/checkout/action.yml index 44501a11a..5442f88f7 100644 --- a/.github/actions/checkout/action.yml +++ b/.github/actions/checkout/action.yml @@ -32,7 +32,7 @@ runs: (Resolve-Path '${{ github.action_path }}/../../../Scripts').Path >> $Env:GITHUB_PATH - name: Set Checkout Token - uses: Lombiq/GitHub-Actions/.github/actions/set-checkout-token@issue/LMBQ-178 + uses: Lombiq/GitHub-Actions/.github/actions/set-checkout-token@dev with: checkout-token: ${{ inputs.token }} diff --git a/.github/actions/markdown-lint/action.yml b/.github/actions/markdown-lint/action.yml index 01f290dfc..36d1387a5 100644 --- a/.github/actions/markdown-lint/action.yml +++ b/.github/actions/markdown-lint/action.yml @@ -57,7 +57,7 @@ runs: Set-GitHubOutput 'artifact-path' $artifactFolder - name: Upload files fixed by markdown-lint - uses: Lombiq/GitHub-Actions/.github/actions/upload-artifact@issue/LMBQ-178 + uses: Lombiq/GitHub-Actions/.github/actions/upload-artifact@dev if: inputs.fix == 'true' && steps.markdown-lint-fix-files.outputs.has-fixes == 'true' with: name: markdown-lint-fixed-files diff --git a/.github/actions/precompile-orchard1-app/action.yml b/.github/actions/precompile-orchard1-app/action.yml index 2c11b27a4..34430f384 100644 --- a/.github/actions/precompile-orchard1-app/action.yml +++ b/.github/actions/precompile-orchard1-app/action.yml @@ -55,7 +55,7 @@ runs: if: inputs.repository != '' # Using the official checkout action directly, because our wrapper action doesn't have most of the parameters we # need here. We only need those parameters for this action though. - uses: Lombiq/GitHub-Actions/.github/actions/checkout@issue/LMBQ-178 + uses: Lombiq/GitHub-Actions/.github/actions/checkout@dev with: repository: ${{ inputs.repository }} ref: ${{ inputs.checkout-ref }} @@ -63,7 +63,7 @@ runs: path: ${{ inputs.checkout-path }} - name: Enable Node corepack - uses: Lombiq/GitHub-Actions/.github/actions/enable-corepack@issue/LMBQ-178 + uses: Lombiq/GitHub-Actions/.github/actions/enable-corepack@dev # Calling nuget restore separately on the actual solution, because we're passing Orchard.proj to the msbuild action # instead to be able to call the Precompiled target on it. @@ -72,7 +72,7 @@ runs: run: nuget restore ${{ inputs.checkout-path }}/${{ inputs.solution-path }} - name: Publish Precompiled app - uses: Lombiq/GitHub-Actions/.github/actions/msbuild@issue/LMBQ-178 + uses: Lombiq/GitHub-Actions/.github/actions/msbuild@dev with: directory: ${{ inputs.checkout-path }} verbosity: ${{ inputs.verbosity }} diff --git a/.github/actions/publish-nuget/action.yml b/.github/actions/publish-nuget/action.yml index 3c8494fc6..b2a29914d 100644 --- a/.github/actions/publish-nuget/action.yml +++ b/.github/actions/publish-nuget/action.yml @@ -133,7 +133,7 @@ runs: run: Update-ManifestVersion './' '${{ steps.setup.outputs.publish-version }}' - name: Enable Node corepack - uses: Lombiq/GitHub-Actions/.github/actions/enable-corepack@issue/LMBQ-178 + uses: Lombiq/GitHub-Actions/.github/actions/enable-corepack@dev - name: Generate nuspec file if needed if: hashFiles('ConvertTo-Nuspec.ps1') @@ -141,7 +141,7 @@ runs: run: ./ConvertTo-Nuspec.ps1 '${{ steps.setup.outputs.publish-version }}' - name: Build - uses: Lombiq/GitHub-Actions/.github/actions/build-dotnet@issue/LMBQ-178 + uses: Lombiq/GitHub-Actions/.github/actions/build-dotnet@dev # Notes on the configuration: # * -p:NuGetBuild=true is our property to load Lombiq dependencies from NuGet by switching project references # to package references. @@ -226,14 +226,14 @@ runs: run: dotnet nuget push artifacts/*.nupkg --api-key $Env:API_KEY --source '${{ steps.setup.outputs.source-url }}' --skip-duplicate - name: Publish Artifacts - uses: Lombiq/GitHub-Actions/.github/actions/upload-artifact@issue/LMBQ-178 + uses: Lombiq/GitHub-Actions/.github/actions/upload-artifact@dev with: name: NuGet-Package path: artifacts retention-days: ${{ inputs.nuget-artifact-retention-days }} - name: Create Release - uses: Lombiq/GitHub-Actions/.github/actions/release-action@issue/LMBQ-178 + uses: Lombiq/GitHub-Actions/.github/actions/release-action@dev # This is to prevent creating releases when pushing tags for issue-specific pre-releases like # v4.3.1-alpha.osoe-86. if: "!contains(steps.setup.outputs.publish-version, '-')" diff --git a/.github/actions/spelling/action.yml b/.github/actions/spelling/action.yml index 063fb5952..23c6c4c06 100644 --- a/.github/actions/spelling/action.yml +++ b/.github/actions/spelling/action.yml @@ -45,7 +45,7 @@ inputs: Repository with default configuration to use when the workspace repository doesn't have its own configuration. The default from Check Spelling is ''. required: false - default: Lombiq/GitHub-Actions@issue/LMBQ-178 + default: Lombiq/GitHub-Actions@dev post-comment: description: Flag for if check-spelling should post comment, the default is 1. required: false @@ -130,7 +130,7 @@ runs: shell: pwsh run: | $defaultPrefixes = @{ - 'lombiq-lgha' = 'https://raw.githubusercontent.com/Lombiq/GitHub-Actions/issue/LMBQ-178/.github/actions/spelling/' + 'lombiq-lgha' = 'https://raw.githubusercontent.com/Lombiq/GitHub-Actions/dev/.github/actions/spelling/' 'cspell' = 'https://raw.githubusercontent.com/check-spelling/cspell-dicts/v20230509/dictionaries/' } diff --git a/.github/actions/test-dotnet/action.yml b/.github/actions/test-dotnet/action.yml index ce8a416a5..2041157bd 100644 --- a/.github/actions/test-dotnet/action.yml +++ b/.github/actions/test-dotnet/action.yml @@ -92,7 +92,7 @@ runs: Set-GitHubEnv 'Lombiq_Tests_UI__OrchardCoreUITestExecutorConfiguration__MaxParallelTests' ${{ inputs.ui-test-parallelism }} - name: Install dotnet-dump - uses: Lombiq/GitHub-Actions/.github/actions/install-dotnet-tool@issue/LMBQ-178 + uses: Lombiq/GitHub-Actions/.github/actions/install-dotnet-tool@dev with: name: dotnet-dump version: 8.0.510501 @@ -128,7 +128,7 @@ runs: # Under Windows this can fail with "ENOENT: no such file or directory" if the path is too long, see # https://github.com/actions/upload-artifact/issues/240. - name: Upload UI Testing Artifacts - uses: Lombiq/GitHub-Actions/.github/actions/upload-artifact@issue/LMBQ-178 + uses: Lombiq/GitHub-Actions/.github/actions/upload-artifact@dev # We don't need additional conditions, because of the "if-no-files-found" setting. if: (success() || failure()) && steps.run-tests.outputs.test-count != 0 with: @@ -144,7 +144,7 @@ runs: run: Merge-BlameHangDumps -Directory "${{ inputs.build-directory }}" -Configuration "${{ inputs.test-configuration }}" - name: Upload Blame Hang Dumps - uses: Lombiq/GitHub-Actions/.github/actions/upload-artifact@issue/LMBQ-178 + uses: Lombiq/GitHub-Actions/.github/actions/upload-artifact@dev if: | failure() && steps.run-tests.outputs.test-count != 0 && @@ -157,7 +157,7 @@ runs: retention-days: ${{ inputs.artifact-retention-days }} - name: Upload Dotnet Test Hang Dumps - uses: Lombiq/GitHub-Actions/.github/actions/upload-artifact@issue/LMBQ-178 + uses: Lombiq/GitHub-Actions/.github/actions/upload-artifact@dev if: (success() || failure()) && steps.run-tests.outputs.test-count != 0 && steps.run-tests.outputs.dotnet-test-hang-dump != 0 with: name: dotnet-test-hang-dump-${{ steps.setup.outputs.artifact-name-suffix }} @@ -166,7 +166,7 @@ runs: retention-days: ${{ inputs.artifact-retention-days }} - name: Upload Diagnostic Logs - uses: Lombiq/GitHub-Actions/.github/actions/upload-artifact@issue/LMBQ-178 + uses: Lombiq/GitHub-Actions/.github/actions/upload-artifact@dev # always() is needed because if the test process hangs and the workflow times out, we still need the diagnostic # logs. We don't need additional conditions, because of the "if-no-files-found" setting. if: always() && steps.run-tests.outputs.test-count != 0 diff --git a/.github/actions/verify-dotnet-consolidation/action.yml b/.github/actions/verify-dotnet-consolidation/action.yml index 8f225fb5b..65f8a788b 100644 --- a/.github/actions/verify-dotnet-consolidation/action.yml +++ b/.github/actions/verify-dotnet-consolidation/action.yml @@ -39,7 +39,7 @@ runs: (Resolve-Path '${{ github.action_path }}/../../../Scripts').Path >> $Env:GITHUB_PATH - name: Install dotnet-consolidate - uses: Lombiq/GitHub-Actions/.github/actions/install-dotnet-tool@issue/LMBQ-178 + uses: Lombiq/GitHub-Actions/.github/actions/install-dotnet-tool@dev with: name: dotnet-consolidate version: 4.2.0 diff --git a/.github/actions/workflow-telemetry/action.yml b/.github/actions/workflow-telemetry/action.yml index 5691c0ebe..91644800b 100644 --- a/.github/actions/workflow-telemetry/action.yml +++ b/.github/actions/workflow-telemetry/action.yml @@ -59,7 +59,7 @@ runs: using: composite steps: - name: Set Checkout Token - uses: Lombiq/GitHub-Actions/.github/actions/set-checkout-token@issue/LMBQ-178 + uses: Lombiq/GitHub-Actions/.github/actions/set-checkout-token@dev with: checkout-token: ${{ inputs.github_token }} diff --git a/.github/workflows/build-and-test-dotnet.yml b/.github/workflows/build-and-test-dotnet.yml index 010feaee9..17d15e593 100644 --- a/.github/workflows/build-and-test-dotnet.yml +++ b/.github/workflows/build-and-test-dotnet.yml @@ -224,37 +224,37 @@ jobs: # This has to be the first step so it can collect data about the whole workflow run. - name: Collect Workflow Telemetry if: inputs.collect-workflow-telemetry == 'true' - uses: Lombiq/GitHub-Actions/.github/actions/workflow-telemetry@issue/LMBQ-178 + uses: Lombiq/GitHub-Actions/.github/actions/workflow-telemetry@dev with: github_token: ${{ secrets.CHECKOUT_TOKEN }} - name: Set Environment Variables - uses: Lombiq/GitHub-Actions/.github/actions/set-environment-variables@issue/LMBQ-178 + uses: Lombiq/GitHub-Actions/.github/actions/set-environment-variables@dev env: ENVIRONMENT_VARIABLES_JSON: ${{ secrets.ENVIRONMENT_VARIABLES_JSON }} - name: Checkout - uses: Lombiq/GitHub-Actions/.github/actions/checkout@issue/LMBQ-178 + uses: Lombiq/GitHub-Actions/.github/actions/checkout@dev with: repository: ${{ inputs.repository }} ref: ${{ inputs.repository-ref }} token: ${{ secrets.CHECKOUT_TOKEN }} - name: Set up .NET - uses: Lombiq/GitHub-Actions/.github/actions/setup-dotnet@issue/LMBQ-178 + uses: Lombiq/GitHub-Actions/.github/actions/setup-dotnet@dev with: dotnet-version: ${{ inputs.dotnet-version }} - name: Verify that .NET packages are consolidated if: ${{ inputs.verify-dotnet-consolidation }} - uses: Lombiq/GitHub-Actions/.github/actions/verify-dotnet-consolidation@issue/LMBQ-178 + uses: Lombiq/GitHub-Actions/.github/actions/verify-dotnet-consolidation@dev with: directory: ${{ inputs.build-directory }} exclude-version-regex: ${{ inputs.dotnet-consolidation-exclude-version-regex }} exclude-project-path: ${{ inputs.dotnet-consolidation-exclude-project-path }} - name: Build and Static Code Analysis - uses: Lombiq/GitHub-Actions/.github/actions/build-dotnet@issue/LMBQ-178 + uses: Lombiq/GitHub-Actions/.github/actions/build-dotnet@dev with: directory: ${{ inputs.build-directory}} configuration: ${{ inputs.build-configuration}} @@ -270,7 +270,7 @@ jobs: - name: Tests if: inputs.test-disable == 'false' - uses: Lombiq/GitHub-Actions/.github/actions/test-dotnet@issue/LMBQ-178 + uses: Lombiq/GitHub-Actions/.github/actions/test-dotnet@dev with: blame-hang-timeout: ${{ inputs.blame-hang-timeout }} build-directory: ${{ inputs.build-directory }} @@ -284,6 +284,6 @@ jobs: - name: Cancel Workflow on Failure if: failure() && inputs.cancel-workflow-on-failure == 'true' - uses: Lombiq/GitHub-Actions/.github/actions/cancel-workflow@issue/LMBQ-178 + uses: Lombiq/GitHub-Actions/.github/actions/cancel-workflow@dev env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/build-and-test-orchard-core.yml b/.github/workflows/build-and-test-orchard-core.yml index 1d8f1abf0..c20385c74 100644 --- a/.github/workflows/build-and-test-orchard-core.yml +++ b/.github/workflows/build-and-test-orchard-core.yml @@ -246,12 +246,12 @@ jobs: # This has to be the first step so it can collect data about the whole workflow run. - name: Collect Workflow Telemetry if: inputs.collect-workflow-telemetry == 'true' - uses: Lombiq/GitHub-Actions/.github/actions/workflow-telemetry@issue/LMBQ-178 + uses: Lombiq/GitHub-Actions/.github/actions/workflow-telemetry@dev with: github_token: ${{ secrets.CHECKOUT_TOKEN }} - name: Set Environment Variables - uses: Lombiq/GitHub-Actions/.github/actions/set-environment-variables@issue/LMBQ-178 + uses: Lombiq/GitHub-Actions/.github/actions/set-environment-variables@dev env: ENVIRONMENT_VARIABLES_JSON: ${{ secrets.ENVIRONMENT_VARIABLES_JSON }} @@ -267,30 +267,30 @@ jobs: Write-Output $message - name: Checkout - uses: Lombiq/GitHub-Actions/.github/actions/checkout@issue/LMBQ-178 + uses: Lombiq/GitHub-Actions/.github/actions/checkout@dev with: repository: ${{ inputs.repository }} ref: ${{ inputs.repository-ref }} token: ${{ secrets.CHECKOUT_TOKEN }} - name: Set up .NET - uses: Lombiq/GitHub-Actions/.github/actions/setup-dotnet@issue/LMBQ-178 + uses: Lombiq/GitHub-Actions/.github/actions/setup-dotnet@dev with: dotnet-version: ${{ inputs.dotnet-version }} - name: Verify that .NET packages are consolidated if: ${{ inputs.verify-dotnet-consolidation }} - uses: Lombiq/GitHub-Actions/.github/actions/verify-dotnet-consolidation@issue/LMBQ-178 + uses: Lombiq/GitHub-Actions/.github/actions/verify-dotnet-consolidation@dev with: directory: ${{ inputs.build-directory }} exclude-version-regex: ${{ inputs.dotnet-consolidation-exclude-version-regex }} exclude-project-path: ${{ inputs.dotnet-consolidation-exclude-project-path }} - name: Enable Node.js corepack - uses: Lombiq/GitHub-Actions/.github/actions/enable-corepack@issue/LMBQ-178 + uses: Lombiq/GitHub-Actions/.github/actions/enable-corepack@dev - name: Build and Static Code Analysis - uses: Lombiq/GitHub-Actions/.github/actions/build-dotnet@issue/LMBQ-178 + uses: Lombiq/GitHub-Actions/.github/actions/build-dotnet@dev with: directory: ${{ inputs.build-directory }} configuration: ${{ inputs.build-configuration}} @@ -306,25 +306,25 @@ jobs: - name: Print configuration summary if: inputs.print-config-summary == 'true' && (success() || failure()) - uses: Lombiq/GitHub-Actions/.github/actions/print-config-summary@issue/LMBQ-178 + uses: Lombiq/GitHub-Actions/.github/actions/print-config-summary@dev - name: Set up SQL Server if: inputs.set-up-sql-server == 'true' - uses: Lombiq/GitHub-Actions/.github/actions/setup-sql-server@issue/LMBQ-178 + uses: Lombiq/GitHub-Actions/.github/actions/setup-sql-server@dev - name: Set up Elasticsearch if: inputs.set-up-elasticsearch == 'true' - uses: Lombiq/GitHub-Actions/.github/actions/setup-elasticsearch@issue/LMBQ-178 + uses: Lombiq/GitHub-Actions/.github/actions/setup-elasticsearch@dev - name: Set up Azurite if: inputs.set-up-azurite == 'true' - uses: Lombiq/GitHub-Actions/.github/actions/setup-azurite@issue/LMBQ-178 + uses: Lombiq/GitHub-Actions/.github/actions/setup-azurite@dev with: location: ${{ inputs.build-directory}} - name: Tests if: inputs.test-disable == 'false' - uses: Lombiq/GitHub-Actions/.github/actions/test-dotnet@issue/LMBQ-178 + uses: Lombiq/GitHub-Actions/.github/actions/test-dotnet@dev with: blame-hang-timeout: ${{ inputs.blame-hang-timeout }} build-directory: ${{ inputs.build-directory }} @@ -339,6 +339,6 @@ jobs: - name: Cancel Workflow on Failure if: failure() && inputs.cancel-workflow-on-failure == 'true' - uses: Lombiq/GitHub-Actions/.github/actions/cancel-workflow@issue/LMBQ-178 + uses: Lombiq/GitHub-Actions/.github/actions/cancel-workflow@dev env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/build-dotnet.yml b/.github/workflows/build-dotnet.yml index 7ffb538bb..22013e6f0 100644 --- a/.github/workflows/build-dotnet.yml +++ b/.github/workflows/build-dotnet.yml @@ -88,23 +88,23 @@ jobs: Write-Output '::warning::This workflow is deprecated. Use build-and-test-dotnet instead, that can also execute tests.' - name: Checkout - uses: Lombiq/GitHub-Actions/.github/actions/checkout@issue/LMBQ-178 + uses: Lombiq/GitHub-Actions/.github/actions/checkout@dev with: token: ${{ secrets.CHECKOUT_TOKEN }} - name: Set up .NET - uses: Lombiq/GitHub-Actions/.github/actions/setup-dotnet@issue/LMBQ-178 + uses: Lombiq/GitHub-Actions/.github/actions/setup-dotnet@dev with: dotnet-version: ${{ inputs.dotnet-version }} - name: Verify that .NET packages are consolidated if: ${{ inputs.verify-dotnet-consolidation }} - uses: Lombiq/GitHub-Actions/.github/actions/verify-dotnet-consolidation@issue/LMBQ-178 + uses: Lombiq/GitHub-Actions/.github/actions/verify-dotnet-consolidation@dev with: directory: ${{ inputs.build-directory }} - name: Build and Static Code Analysis - uses: Lombiq/GitHub-Actions/.github/actions/build-dotnet@issue/LMBQ-178 + uses: Lombiq/GitHub-Actions/.github/actions/build-dotnet@dev with: directory: ${{ inputs.build-directory}} verbosity: ${{ inputs.build-verbosity}} @@ -115,6 +115,6 @@ jobs: - name: Cancel Workflow on Failure if: failure() && inputs.cancel-workflow-on-failure == 'true' - uses: Lombiq/GitHub-Actions/.github/actions/cancel-workflow@issue/LMBQ-178 + uses: Lombiq/GitHub-Actions/.github/actions/cancel-workflow@dev env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/create-jira-issues-for-community-activities-in-this-repo.yml b/.github/workflows/create-jira-issues-for-community-activities-in-this-repo.yml index dc3199401..7b307e153 100644 --- a/.github/workflows/create-jira-issues-for-community-activities-in-this-repo.yml +++ b/.github/workflows/create-jira-issues-for-community-activities-in-this-repo.yml @@ -11,7 +11,7 @@ on: jobs: create-jira-issues-for-community-activities: name: Create Jira issues for community activities - uses: Lombiq/GitHub-Actions/.github/workflows/create-jira-issues-for-community-activities.yml@issue/LMBQ-178 + uses: Lombiq/GitHub-Actions/.github/workflows/create-jira-issues-for-community-activities.yml@dev secrets: JIRA_BASE_URL: ${{ secrets.DEFAULT_JIRA_BASE_URL }} JIRA_USER_EMAIL: ${{ secrets.DEFAULT_JIRA_USER_EMAIL }} diff --git a/.github/workflows/create-jira-issues-for-community-activities.yml b/.github/workflows/create-jira-issues-for-community-activities.yml index 9557306d1..939b6c970 100644 --- a/.github/workflows/create-jira-issues-for-community-activities.yml +++ b/.github/workflows/create-jira-issues-for-community-activities.yml @@ -60,7 +60,7 @@ jobs: timeout-minutes: ${{ inputs.timeout-minutes }} steps: - name: Create Jira issues for community activities - uses: Lombiq/GitHub-Actions/.github/actions/create-jira-issues-for-community-activities@issue/LMBQ-178 + uses: Lombiq/GitHub-Actions/.github/actions/create-jira-issues-for-community-activities@dev env: JIRA_BASE_URL: ${{ secrets.JIRA_BASE_URL }} JIRA_USER_EMAIL: ${{ secrets.JIRA_USER_EMAIL }} diff --git a/.github/workflows/deploy-orchard1-to-azure-app-service.yml b/.github/workflows/deploy-orchard1-to-azure-app-service.yml index de2dd668b..9fc64e0db 100644 --- a/.github/workflows/deploy-orchard1-to-azure-app-service.yml +++ b/.github/workflows/deploy-orchard1-to-azure-app-service.yml @@ -128,12 +128,12 @@ jobs: timeout-minutes: ${{ inputs.timeout-minutes }} steps: - name: Checkout - uses: Lombiq/GitHub-Actions/.github/actions/checkout@issue/LMBQ-178 + uses: Lombiq/GitHub-Actions/.github/actions/checkout@dev with: token: ${{ secrets.CHECKOUT_TOKEN }} - name: Enable Node corepack - uses: Lombiq/GitHub-Actions/.github/actions/enable-corepack@issue/LMBQ-178 + uses: Lombiq/GitHub-Actions/.github/actions/enable-corepack@dev # Calling nuget restore separately on the actual solution, because we're passing Orchard.proj to the msbuild # action instead to be able to call the Precompiled target. @@ -141,7 +141,7 @@ jobs: run: nuget restore ${{ inputs.build-directory }}\${{ inputs.solution-or-project-path }} - name: Publish Precompiled App - uses: Lombiq/GitHub-Actions/.github/actions/msbuild@issue/LMBQ-178 + uses: Lombiq/GitHub-Actions/.github/actions/msbuild@dev with: solution-or-project-path: Orchard.proj verbosity: ${{ inputs.build-verbosity }} @@ -152,14 +152,14 @@ jobs: /p:Solution=${{ inputs.build-directory }}\${{ inputs.solution-or-project-path }} - name: Login to Azure - uses: Lombiq/GitHub-Actions/.github/actions/login-to-azure@issue/LMBQ-178 + uses: Lombiq/GitHub-Actions/.github/actions/login-to-azure@dev env: AZURE_CLIENT_ID: ${{ secrets.AZURE_APP_SERVICE_DEPLOYMENT_SERVICE_PRINCIPAL_ID }} AZURE_TENANT_ID: ${{ secrets.AZURE_APP_SERVICE_DEPLOYMENT_AZURE_TENANT_ID }} AZURE_SUBSCRIPTION_ID: ${{ secrets.AZURE_APP_SERVICE_DEPLOYMENT_AZURE_SUBSCRIPTION_ID }} - name: Initialize PowerShell modules - uses: Lombiq/Infrastructure-Scripts/.github/actions/initialize@issue/LMBQ-178 + uses: Lombiq/Infrastructure-Scripts/.github/actions/initialize@dev - name: Stop Web App Slot run: | @@ -183,7 +183,7 @@ jobs: - name: Add Azure Application Insights Release Annotation if: ${{ inputs.application-insights-resource-id != '' }} - uses: Lombiq/GitHub-Actions/.github/actions/add-azure-application-insights-release-annotation@issue/LMBQ-178 + uses: Lombiq/GitHub-Actions/.github/actions/add-azure-application-insights-release-annotation@dev with: release-name: 'Deploy #${{ github.run_number }} to ${{ inputs.slot-name }}' application-insights-resource-id: ${{ inputs.application-insights-resource-id }} @@ -216,6 +216,6 @@ jobs: - name: Cancel Workflow on Failure if: failure() && inputs.cancel-workflow-on-failure == 'true' - uses: Lombiq/GitHub-Actions/.github/actions/cancel-workflow@issue/LMBQ-178 + uses: Lombiq/GitHub-Actions/.github/actions/cancel-workflow@dev env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/deploy-to-azure-app-service.yml b/.github/workflows/deploy-to-azure-app-service.yml index 27fe21f4c..2c674fba3 100644 --- a/.github/workflows/deploy-to-azure-app-service.yml +++ b/.github/workflows/deploy-to-azure-app-service.yml @@ -144,17 +144,17 @@ jobs: timeout-minutes: ${{ inputs.timeout-minutes }} steps: - name: Checkout - uses: Lombiq/GitHub-Actions/.github/actions/checkout@issue/LMBQ-178 + uses: Lombiq/GitHub-Actions/.github/actions/checkout@dev with: token: ${{ secrets.CHECKOUT_TOKEN }} - name: Set up .NET - uses: Lombiq/GitHub-Actions/.github/actions/setup-dotnet@issue/LMBQ-178 + uses: Lombiq/GitHub-Actions/.github/actions/setup-dotnet@dev with: dotnet-version: ${{ inputs.dotnet-version }} - name: Enable Node corepack - uses: Lombiq/GitHub-Actions/.github/actions/enable-corepack@issue/LMBQ-178 + uses: Lombiq/GitHub-Actions/.github/actions/enable-corepack@dev # If runtime is defined, we need to add "--runtime=" to the string so it will be a valid build/publish option. The # "build-dotnet" action requires the additional switches to be in separate lines (even the parameters), but we can @@ -166,7 +166,7 @@ jobs: "runtime-option=--runtime=${{ inputs.runtime }}" >> $Env:GITHUB_OUTPUT - name: Build and Static Code Analysis - uses: Lombiq/GitHub-Actions/.github/actions/build-dotnet@issue/LMBQ-178 + uses: Lombiq/GitHub-Actions/.github/actions/build-dotnet@dev with: directory: ${{ inputs.build-directory }} verbosity: ${{ inputs.build-verbosity }} @@ -199,14 +199,14 @@ jobs: Compress-Archive -Path .\Published\* -DestinationPath .\Published.zip - name: Login to Azure - uses: Lombiq/GitHub-Actions/.github/actions/login-to-azure@issue/LMBQ-178 + uses: Lombiq/GitHub-Actions/.github/actions/login-to-azure@dev env: AZURE_CLIENT_ID: ${{ secrets.AZURE_APP_SERVICE_DEPLOYMENT_SERVICE_PRINCIPAL_ID }} AZURE_TENANT_ID: ${{ secrets.AZURE_APP_SERVICE_DEPLOYMENT_AZURE_TENANT_ID }} AZURE_SUBSCRIPTION_ID: ${{ secrets.AZURE_APP_SERVICE_DEPLOYMENT_AZURE_SUBSCRIPTION_ID }} - name: Initialize PowerShell modules - uses: Lombiq/Infrastructure-Scripts/.github/actions/initialize@issue/LMBQ-178 + uses: Lombiq/Infrastructure-Scripts/.github/actions/initialize@dev - name: Stop Web App Slot run: | @@ -228,7 +228,7 @@ jobs: clean: false - name: Add Azure Application Insights Release Annotation - uses: Lombiq/GitHub-Actions/.github/actions/add-azure-application-insights-release-annotation@issue/LMBQ-178 + uses: Lombiq/GitHub-Actions/.github/actions/add-azure-application-insights-release-annotation@dev with: release-name: 'Deploy #${{ github.run_number }} to ${{ inputs.slot-name }}' application-insights-resource-id: ${{ inputs.application-insights-resource-id }} @@ -249,6 +249,6 @@ jobs: - name: Cancel Workflow on Failure if: failure() && inputs.cancel-workflow-on-failure == 'true' - uses: Lombiq/GitHub-Actions/.github/actions/cancel-workflow@issue/LMBQ-178 + uses: Lombiq/GitHub-Actions/.github/actions/cancel-workflow@dev env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/markdown-lint-this-repo.yml b/.github/workflows/markdown-lint-this-repo.yml index 21b409813..910f32726 100644 --- a/.github/workflows/markdown-lint-this-repo.yml +++ b/.github/workflows/markdown-lint-this-repo.yml @@ -10,7 +10,7 @@ on: jobs: markdown-linting: name: Markdown Linting - uses: Lombiq/GitHub-Actions/.github/workflows/markdown-lint.yml@issue/LMBQ-178 + uses: Lombiq/GitHub-Actions/.github/workflows/markdown-lint.yml@dev with: globs: '**/*.{md,markdown};!License.md' separator: ; diff --git a/.github/workflows/markdown-lint.yml b/.github/workflows/markdown-lint.yml index 7a3a06459..47fe28d4a 100644 --- a/.github/workflows/markdown-lint.yml +++ b/.github/workflows/markdown-lint.yml @@ -43,12 +43,12 @@ jobs: timeout-minutes: ${{ inputs.timeout-minutes }} steps: - name: Checkout - uses: Lombiq/GitHub-Actions/.github/actions/checkout@issue/LMBQ-178 + uses: Lombiq/GitHub-Actions/.github/actions/checkout@dev with: token: ${{ secrets.CHECKOUT_TOKEN }} - name: Markdown Linting - uses: Lombiq/GitHub-Actions/.github/actions/markdown-lint@issue/LMBQ-178 + uses: Lombiq/GitHub-Actions/.github/actions/markdown-lint@dev with: config: ${{ inputs.config }} fix: ${{ inputs.fix }} @@ -57,6 +57,6 @@ jobs: - name: Cancel Workflow on Failure if: failure() && inputs.cancel-workflow-on-failure == 'true' - uses: Lombiq/GitHub-Actions/.github/actions/cancel-workflow@issue/LMBQ-178 + uses: Lombiq/GitHub-Actions/.github/actions/cancel-workflow@dev env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/msbuild-and-test.yml b/.github/workflows/msbuild-and-test.yml index c7b0b701d..5ed7e7bf7 100644 --- a/.github/workflows/msbuild-and-test.yml +++ b/.github/workflows/msbuild-and-test.yml @@ -128,31 +128,31 @@ jobs: # This has to be the first step so it can collect data about the whole workflow run. - name: Collect Workflow Telemetry if: inputs.collect-workflow-telemetry == 'true' - uses: Lombiq/GitHub-Actions/.github/actions/workflow-telemetry@issue/LMBQ-178 + uses: Lombiq/GitHub-Actions/.github/actions/workflow-telemetry@dev with: github_token: ${{ secrets.CHECKOUT_TOKEN }} - name: Set Environment Variables - uses: Lombiq/GitHub-Actions/.github/actions/set-environment-variables@issue/LMBQ-178 + uses: Lombiq/GitHub-Actions/.github/actions/set-environment-variables@dev env: ENVIRONMENT_VARIABLES_JSON: ${{ secrets.ENVIRONMENT_VARIABLES_JSON }} - name: Checkout - uses: Lombiq/GitHub-Actions/.github/actions/checkout@issue/LMBQ-178 + uses: Lombiq/GitHub-Actions/.github/actions/checkout@dev with: repository: ${{ inputs.repository }} ref: ${{ inputs.repository-ref }} token: ${{ secrets.CHECKOUT_TOKEN }} - name: Enable Node corepack - uses: Lombiq/GitHub-Actions/.github/actions/enable-corepack@issue/LMBQ-178 + uses: Lombiq/GitHub-Actions/.github/actions/enable-corepack@dev # This is necessary for building Gulp Extensions and test-dotnet. - name: Set up .NET - uses: Lombiq/GitHub-Actions/.github/actions/setup-dotnet@issue/LMBQ-178 + uses: Lombiq/GitHub-Actions/.github/actions/setup-dotnet@dev - name: Build and Static Code Analysis - uses: Lombiq/GitHub-Actions/.github/actions/msbuild@issue/LMBQ-178 + uses: Lombiq/GitHub-Actions/.github/actions/msbuild@dev with: directory: ${{ inputs.build-directory }} solution-or-project-path: ${{ inputs.solution-or-project-path }} @@ -162,7 +162,7 @@ jobs: - name: Tests if: inputs.test-disable == 'false' - uses: Lombiq/GitHub-Actions/.github/actions/test-dotnet@issue/LMBQ-178 + uses: Lombiq/GitHub-Actions/.github/actions/test-dotnet@dev with: build-directory: ${{ inputs.build-directory }} dotnet-test-process-timeout: ${{ inputs.dotnet-test-process-timeout }} @@ -172,6 +172,6 @@ jobs: - name: Cancel Workflow on Failure if: failure() && inputs.cancel-workflow-on-failure == 'true' - uses: Lombiq/GitHub-Actions/.github/actions/cancel-workflow@issue/LMBQ-178 + uses: Lombiq/GitHub-Actions/.github/actions/cancel-workflow@dev env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/post-pull-request-checks-automation.yml b/.github/workflows/post-pull-request-checks-automation.yml index d30797d44..020b75c41 100644 --- a/.github/workflows/post-pull-request-checks-automation.yml +++ b/.github/workflows/post-pull-request-checks-automation.yml @@ -58,7 +58,7 @@ jobs: steps: - name: Check Further Steps Should Run if: inputs.run-only-latest-workflow == 'true' - uses: Lombiq/GitHub-Actions/.github/actions/check-current-workflow-is-latest@issue/LMBQ-178 + uses: Lombiq/GitHub-Actions/.github/actions/check-current-workflow-is-latest@dev id: check-steps-should-run env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} @@ -77,7 +77,7 @@ jobs: - name: Automatically Merge Pull Request if: steps.check-steps-should-run.outputs.is-latest != 'false' - uses: Lombiq/GitHub-Actions/.github/actions/auto-merge-pull-request@issue/LMBQ-178 + uses: Lombiq/GitHub-Actions/.github/actions/auto-merge-pull-request@dev env: GITHUB_TOKEN: ${{ env.MERGE_TOKEN }} with: @@ -85,7 +85,7 @@ jobs: - name: Automatically Transition Jira issue if: steps.check-steps-should-run.outputs.is-latest != 'false' - uses: Lombiq/GitHub-Actions/.github/actions/auto-transition-jira-issue@issue/LMBQ-178 + uses: Lombiq/GitHub-Actions/.github/actions/auto-transition-jira-issue@dev env: GITHUB_TOKEN: ${{ env.MERGE_TOKEN }} JIRA_BASE_URL: ${{ secrets.JIRA_BASE_URL }} @@ -94,7 +94,7 @@ jobs: - name: Remove Label if: steps.check-steps-should-run.outputs.is-latest != 'false' - uses: Lombiq/GitHub-Actions/.github/actions/add-remove-label@issue/LMBQ-178 + uses: Lombiq/GitHub-Actions/.github/actions/add-remove-label@dev with: token: ${{ env.MERGE_TOKEN }} labels: merge-and-resolve-jira-issue-if-checks-succeed diff --git a/.github/workflows/publish-nuget.yml b/.github/workflows/publish-nuget.yml index f2331222a..643ca94b5 100644 --- a/.github/workflows/publish-nuget.yml +++ b/.github/workflows/publish-nuget.yml @@ -76,22 +76,22 @@ jobs: timeout-minutes: ${{ inputs.timeout-minutes }} steps: - name: Set Environment Variables - uses: Lombiq/GitHub-Actions/.github/actions/set-environment-variables@issue/LMBQ-178 + uses: Lombiq/GitHub-Actions/.github/actions/set-environment-variables@dev env: ENVIRONMENT_VARIABLES_JSON: ${{ secrets.ENVIRONMENT_VARIABLES_JSON }} - name: Checkout - uses: Lombiq/GitHub-Actions/.github/actions/checkout@issue/LMBQ-178 + uses: Lombiq/GitHub-Actions/.github/actions/checkout@dev with: token: ${{ secrets.CHECKOUT_TOKEN }} - name: Set up .NET - uses: Lombiq/GitHub-Actions/.github/actions/setup-dotnet@issue/LMBQ-178 + uses: Lombiq/GitHub-Actions/.github/actions/setup-dotnet@dev with: dotnet-version: ${{ inputs.dotnet-version }} - name: Publish to NuGet - uses: Lombiq/GitHub-Actions/.github/actions/publish-nuget@issue/LMBQ-178 + uses: Lombiq/GitHub-Actions/.github/actions/publish-nuget@dev with: source: ${{ inputs.source }} verbosity: ${{ inputs.verbosity }} @@ -106,6 +106,6 @@ jobs: - name: Cancel Workflow on Failure if: failure() && inputs.cancel-workflow-on-failure == 'true' - uses: Lombiq/GitHub-Actions/.github/actions/cancel-workflow@issue/LMBQ-178 + uses: Lombiq/GitHub-Actions/.github/actions/cancel-workflow@dev env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/reset-azure-environment.yml b/.github/workflows/reset-azure-environment.yml index ad0ed1952..2192d1eca 100644 --- a/.github/workflows/reset-azure-environment.yml +++ b/.github/workflows/reset-azure-environment.yml @@ -133,14 +133,14 @@ jobs: timeout-minutes: ${{ inputs.timeout-minutes }} steps: - name: Login to Azure - uses: Lombiq/GitHub-Actions/.github/actions/login-to-azure@issue/LMBQ-178 + uses: Lombiq/GitHub-Actions/.github/actions/login-to-azure@dev env: AZURE_CLIENT_ID: ${{ secrets.AZURE_APP_SERVICE_RESET_SERVICE_PRINCIPAL_ID }} AZURE_TENANT_ID: ${{ secrets.AZURE_APP_SERVICE_RESET_AZURE_TENANT_ID }} AZURE_SUBSCRIPTION_ID: ${{ secrets.AZURE_APP_SERVICE_RESET_AZURE_SUBSCRIPTION_ID }} - name: Initialize PowerShell modules - uses: Lombiq/Infrastructure-Scripts/.github/actions/initialize@issue/LMBQ-178 + uses: Lombiq/Infrastructure-Scripts/.github/actions/initialize@dev - name: Stop Web App Slot run: | @@ -193,7 +193,7 @@ jobs: - name: Add Azure Application Insights Release Annotation if: ${{ inputs.application-insights-resource-id != '' }} - uses: Lombiq/GitHub-Actions/.github/actions/add-azure-application-insights-release-annotation@issue/LMBQ-178 + uses: Lombiq/GitHub-Actions/.github/actions/add-azure-application-insights-release-annotation@dev with: release-name: 'Reset #${{ github.run_number }} from ${{ inputs.source-slot-name }} to ${{ inputs.destination-slot-name }}' application-insights-resource-id: ${{ inputs.application-insights-resource-id }} @@ -235,6 +235,6 @@ jobs: - name: Cancel Workflow on Failure if: failure() && inputs.cancel-workflow-on-failure == 'true' - uses: Lombiq/GitHub-Actions/.github/actions/cancel-workflow@issue/LMBQ-178 + uses: Lombiq/GitHub-Actions/.github/actions/cancel-workflow@dev env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/spelling-this-repo.yml b/.github/workflows/spelling-this-repo.yml index 88d9b2559..cc1d2dd9b 100644 --- a/.github/workflows/spelling-this-repo.yml +++ b/.github/workflows/spelling-this-repo.yml @@ -11,7 +11,7 @@ on: jobs: spelling: name: Spelling - uses: Lombiq/GitHub-Actions/.github/workflows/spelling.yml@issue/LMBQ-178 + uses: Lombiq/GitHub-Actions/.github/workflows/spelling.yml@dev with: additional-dictionaries: | cspell:companies/src/companies.txt diff --git a/.github/workflows/spelling.yml b/.github/workflows/spelling.yml index 62e214b4b..8808148f0 100644 --- a/.github/workflows/spelling.yml +++ b/.github/workflows/spelling.yml @@ -79,7 +79,7 @@ on: Repository with default configuration to use when the workspace repository doesn't have its own configuration. The default from Check Spelling is ''. type: string - default: Lombiq/GitHub-Actions@issue/LMBQ-178 + default: Lombiq/GitHub-Actions@dev timeout-minutes: type: number default: 3 @@ -94,7 +94,7 @@ jobs: timeout-minutes: ${{ inputs.timeout-minutes }} steps: - name: Checkout - uses: Lombiq/GitHub-Actions/.github/actions/checkout@issue/LMBQ-178 + uses: Lombiq/GitHub-Actions/.github/actions/checkout@dev with: token: ${{ secrets.CHECKOUT_TOKEN }} @@ -111,7 +111,7 @@ jobs: - name: Check Spelling id: check-spelling-action - uses: Lombiq/GitHub-Actions/.github/actions/spelling@issue/LMBQ-178 + uses: Lombiq/GitHub-Actions/.github/actions/spelling@dev with: merge-file-excludes: ${{ inputs.merge-file-excludes }} merge-forbidden-patterns: ${{ inputs.merge-forbidden-patterns }} @@ -125,7 +125,7 @@ jobs: - name: Cancel Workflow on Failure if: failure() && inputs.cancel-workflow-on-failure == 'true' - uses: Lombiq/GitHub-Actions/.github/actions/cancel-workflow@issue/LMBQ-178 + uses: Lombiq/GitHub-Actions/.github/actions/cancel-workflow@dev env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} @@ -138,7 +138,7 @@ jobs: if: always() && needs.check-spelling.outputs.followup && github.event_name == 'pull_request' steps: - name: Comment (PR) - uses: Lombiq/GitHub-Actions/.github/actions/spelling@issue/LMBQ-178 + uses: Lombiq/GitHub-Actions/.github/actions/spelling@dev with: post-comment: 1 task: ${{ needs.check-spelling.outputs.followup }} diff --git a/.github/workflows/swap-azure-web-app-slots.yml b/.github/workflows/swap-azure-web-app-slots.yml index 7b1fe80b1..aa0901531 100644 --- a/.github/workflows/swap-azure-web-app-slots.yml +++ b/.github/workflows/swap-azure-web-app-slots.yml @@ -81,14 +81,14 @@ jobs: timeout-minutes: ${{ inputs.timeout-minutes }} steps: - name: Login to Azure - uses: Lombiq/GitHub-Actions/.github/actions/login-to-azure@issue/LMBQ-178 + uses: Lombiq/GitHub-Actions/.github/actions/login-to-azure@dev env: AZURE_CLIENT_ID: ${{ secrets.AZURE_APP_SERVICE_SWAP_SERVICE_PRINCIPAL_ID }} AZURE_TENANT_ID: ${{ secrets.AZURE_APP_SERVICE_SWAP_AZURE_TENANT_ID }} AZURE_SUBSCRIPTION_ID: ${{ secrets.AZURE_APP_SERVICE_SWAP_AZURE_SUBSCRIPTION_ID }} - name: Initialize PowerShell modules - uses: Lombiq/Infrastructure-Scripts/.github/actions/initialize@issue/LMBQ-178 + uses: Lombiq/Infrastructure-Scripts/.github/actions/initialize@dev - name: Test Source Web App Slot run: | @@ -106,7 +106,7 @@ jobs: -DestinationSlotName ${{ inputs.destination-slot-name }} - name: Add Azure Application Insights Release Annotation - uses: Lombiq/GitHub-Actions/.github/actions/add-azure-application-insights-release-annotation@issue/LMBQ-178 + uses: Lombiq/GitHub-Actions/.github/actions/add-azure-application-insights-release-annotation@dev with: release-name: 'Swap #${{ github.run_number }} from ${{ inputs.source-slot-name }} to ${{ inputs.destination-slot-name }}' application-insights-resource-id: ${{ inputs.application-insights-resource-id }} @@ -120,6 +120,6 @@ jobs: - name: Cancel Workflow on Failure if: failure() && inputs.cancel-workflow-on-failure == 'true' - uses: Lombiq/GitHub-Actions/.github/actions/cancel-workflow@issue/LMBQ-178 + uses: Lombiq/GitHub-Actions/.github/actions/cancel-workflow@dev env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/swap-orchard1-azure-web-app-slots.yml b/.github/workflows/swap-orchard1-azure-web-app-slots.yml index 85eb181e2..30c9def3f 100644 --- a/.github/workflows/swap-orchard1-azure-web-app-slots.yml +++ b/.github/workflows/swap-orchard1-azure-web-app-slots.yml @@ -92,14 +92,14 @@ jobs: timeout-minutes: ${{ inputs.timeout-minutes }} steps: - name: Login to Azure - uses: Lombiq/GitHub-Actions/.github/actions/login-to-azure@issue/LMBQ-178 + uses: Lombiq/GitHub-Actions/.github/actions/login-to-azure@dev env: AZURE_CLIENT_ID: ${{ secrets.AZURE_APP_SERVICE_SWAP_SERVICE_PRINCIPAL_ID }} AZURE_TENANT_ID: ${{ secrets.AZURE_APP_SERVICE_SWAP_AZURE_TENANT_ID }} AZURE_SUBSCRIPTION_ID: ${{ secrets.AZURE_APP_SERVICE_SWAP_AZURE_SUBSCRIPTION_ID }} - name: Initialize PowerShell modules - uses: Lombiq/Infrastructure-Scripts/.github/actions/initialize@issue/LMBQ-178 + uses: Lombiq/Infrastructure-Scripts/.github/actions/initialize@dev - name: Swap Web App Slots run: | @@ -111,7 +111,7 @@ jobs: - name: Add Azure Application Insights Release Annotation if: ${{ inputs.application-insights-resource-id != '' }} - uses: Lombiq/GitHub-Actions/.github/actions/add-azure-application-insights-release-annotation@issue/LMBQ-178 + uses: Lombiq/GitHub-Actions/.github/actions/add-azure-application-insights-release-annotation@dev with: release-name: 'Swap #${{ github.run_number }} from ${{ inputs.source-slot-name }} to ${{ inputs.destination-slot-name }}' application-insights-resource-id: ${{ inputs.application-insights-resource-id }} @@ -130,6 +130,6 @@ jobs: - name: Cancel Workflow on Failure if: failure() && inputs.cancel-workflow-on-failure == 'true' - uses: Lombiq/GitHub-Actions/.github/actions/cancel-workflow@issue/LMBQ-178 + uses: Lombiq/GitHub-Actions/.github/actions/cancel-workflow@dev env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/tag-version-this-repo.yml b/.github/workflows/tag-version-this-repo.yml index b6a42310b..2105aea5d 100644 --- a/.github/workflows/tag-version-this-repo.yml +++ b/.github/workflows/tag-version-this-repo.yml @@ -9,7 +9,7 @@ jobs: run: name: Tag Version Automation if: github.event.pusher.name != 'LombiqBot' - uses: Lombiq/GitHub-Actions/.github/workflows/tag-version.yml@issue/LMBQ-178 + uses: Lombiq/GitHub-Actions/.github/workflows/tag-version.yml@dev with: additional-pattern-include-list: '@("https://raw.githubusercontent.com/Lombiq/GitHub-Actions/(?[\w\./-]*)/.github")' secrets: diff --git a/.github/workflows/tag-version.yml b/.github/workflows/tag-version.yml index ff757261e..a90ab9852 100644 --- a/.github/workflows/tag-version.yml +++ b/.github/workflows/tag-version.yml @@ -74,7 +74,7 @@ jobs: shell: pwsh steps: - name: Checkout Repository - uses: Lombiq/GitHub-Actions/.github/actions/checkout@issue/LMBQ-178 + uses: Lombiq/GitHub-Actions/.github/actions/checkout@dev with: token: ${{ secrets.TAG_VERSION_TOKEN }} @@ -87,7 +87,7 @@ jobs: "tagname=$tagname" >> $Env:GITHUB_OUTPUT - name: Set Ref for GitHub Actions and Workflows - uses: Lombiq/GitHub-Actions/.github/actions/set-gha-refs@issue/LMBQ-178 + uses: Lombiq/GitHub-Actions/.github/actions/set-gha-refs@dev with: path-include-list: ${{ inputs.path-include-list }} file-include-list: ${{ inputs.file-include-list }} @@ -106,7 +106,7 @@ jobs: run: git push --tags --force - name: Create Release - uses: Lombiq/GitHub-Actions/.github/actions/release-action@issue/LMBQ-178 + uses: Lombiq/GitHub-Actions/.github/actions/release-action@dev # This is to prevent creating releases when pushing tags for issue-specific pre-releases like # v4.3.1-alpha.osoe-86. if: "!contains(steps.determine-tag.outputs.tagname, '-')" diff --git a/.github/workflows/test-analysis-failure.yml b/.github/workflows/test-analysis-failure.yml index 7470ce042..42771d56d 100644 --- a/.github/workflows/test-analysis-failure.yml +++ b/.github/workflows/test-analysis-failure.yml @@ -74,20 +74,20 @@ jobs: timeout-minutes: ${{ inputs.timeout-minutes }} steps: - name: Checkout - uses: Lombiq/GitHub-Actions/.github/actions/checkout@issue/LMBQ-178 + uses: Lombiq/GitHub-Actions/.github/actions/checkout@dev with: token: ${{ secrets.CHECKOUT_TOKEN }} - name: Set up .NET - uses: Lombiq/GitHub-Actions/.github/actions/setup-dotnet@issue/LMBQ-178 + uses: Lombiq/GitHub-Actions/.github/actions/setup-dotnet@dev with: dotnet-version: ${{ inputs.dotnet-version }} - name: Enable Node corepack - uses: Lombiq/GitHub-Actions/.github/actions/enable-corepack@issue/LMBQ-178 + uses: Lombiq/GitHub-Actions/.github/actions/enable-corepack@dev - name: Build and Static Code Analysis - uses: Lombiq/GitHub-Actions/.github/actions/build-dotnet@issue/LMBQ-178 + uses: Lombiq/GitHub-Actions/.github/actions/build-dotnet@dev with: directory: ${{ inputs.build-directory }} verbosity: quiet @@ -99,6 +99,6 @@ jobs: - name: Cancel Workflow on Failure if: failure() && inputs.cancel-workflow-on-failure == 'true' - uses: Lombiq/GitHub-Actions/.github/actions/cancel-workflow@issue/LMBQ-178 + uses: Lombiq/GitHub-Actions/.github/actions/cancel-workflow@dev env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/validate-pull-request.yml b/.github/workflows/validate-pull-request.yml index 56af7337a..d892b20cb 100644 --- a/.github/workflows/validate-pull-request.yml +++ b/.github/workflows/validate-pull-request.yml @@ -22,12 +22,12 @@ jobs: steps: - name: Update GitHub issue and Pull Request if: (github.event_name == 'pull_request_target' || github.event_name == 'pull_request') && github.event.action == 'opened' - uses: Lombiq/GitHub-Actions/.github/actions/update-github-issue-and-pull-request@issue/LMBQ-178 + uses: Lombiq/GitHub-Actions/.github/actions/update-github-issue-and-pull-request@dev env: JIRA_BASE_URL: ${{ secrets.JIRA_BASE_URL }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: Check for Merge Conflict in PR - uses: Lombiq/GitHub-Actions/.github/actions/check-merge-conflict@issue/LMBQ-178 + uses: Lombiq/GitHub-Actions/.github/actions/check-merge-conflict@dev env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/validate-submodule-pull-request.yml b/.github/workflows/validate-submodule-pull-request.yml index 827d5174f..701bde3a1 100644 --- a/.github/workflows/validate-submodule-pull-request.yml +++ b/.github/workflows/validate-submodule-pull-request.yml @@ -34,14 +34,14 @@ jobs: steps: - name: Update GitHub issue and Pull Request if: (github.event_name == 'pull_request_target' || github.event_name == 'pull_request') && github.event.action == 'opened' - uses: Lombiq/GitHub-Actions/.github/actions/update-github-issue-and-pull-request@issue/LMBQ-178 + uses: Lombiq/GitHub-Actions/.github/actions/update-github-issue-and-pull-request@dev env: JIRA_BASE_URL: ${{ secrets.JIRA_BASE_URL }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: Ensure Parent PR Exists if: github.event.pull_request != '' - uses: Lombiq/GitHub-Actions/.github/actions/verify-submodule-pull-request@issue/LMBQ-178 + uses: Lombiq/GitHub-Actions/.github/actions/verify-submodule-pull-request@dev env: GITHUB_TOKEN: ${{ secrets.PARENT_TOKEN != '' && secrets.PARENT_TOKEN || secrets.GITHUB_TOKEN }} with: diff --git a/.github/workflows/validate-this-gha-refs.yml b/.github/workflows/validate-this-gha-refs.yml index 741ea19d0..5a22c5c7e 100644 --- a/.github/workflows/validate-this-gha-refs.yml +++ b/.github/workflows/validate-this-gha-refs.yml @@ -17,18 +17,18 @@ jobs: github.event_name == 'pull_request' || (github.event_name == 'pull_request_review' && github.event.review.state == 'approved') || github.event_name == 'merge_group' - uses: Lombiq/GitHub-Actions/.github/actions/checkout@issue/LMBQ-178 + uses: Lombiq/GitHub-Actions/.github/actions/checkout@dev with: fetch-depth: 0 - name: Checkout Repository (Push) if: github.event_name == 'push' - uses: Lombiq/GitHub-Actions/.github/actions/checkout@issue/LMBQ-178 + uses: Lombiq/GitHub-Actions/.github/actions/checkout@dev - name: Check Merge Queue Adds id: check-merge-queue-adds if: github.event_name == 'pull_request' || (github.event_name == 'pull_request_review' && github.event.review.state == 'approved') - uses: Lombiq/GitHub-Actions/.github/actions/check-merge-queue-adds@issue/LMBQ-178 + uses: Lombiq/GitHub-Actions/.github/actions/check-merge-queue-adds@dev env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} @@ -53,7 +53,7 @@ jobs: github.event_name == 'pull_request' || (github.event_name == 'pull_request_review' && github.event.review.state == 'approved') || github.event_name == 'merge_group' - uses: Lombiq/GitHub-Actions/.github/actions/get-changed-files-from-git-diff@issue/LMBQ-178 + uses: Lombiq/GitHub-Actions/.github/actions/get-changed-files-from-git-diff@dev with: left-commit: ${{ github.event_name == 'merge_group' && github.event.merge_group.base_sha || github.event.pull_request.base.sha }} right-commit: ${{ github.sha }} @@ -65,7 +65,7 @@ jobs: github.event_name == 'pull_request' || (github.event_name == 'pull_request_review' && github.event.review.state == 'approved') || github.event_name == 'merge_group' - uses: Lombiq/GitHub-Actions/.github/actions/get-changed-gha-items@issue/LMBQ-178 + uses: Lombiq/GitHub-Actions/.github/actions/get-changed-gha-items@dev with: file-include-list: ${{ steps.git-diff.outputs.changed-files }} @@ -87,7 +87,7 @@ jobs: - name: Check PR Reviews id: check-pr-reviews if: github.event_name == 'pull_request' || (github.event_name == 'pull_request_review' && github.event.review.state == 'approved') - uses: Lombiq/GitHub-Actions/.github/actions/check-pull-request-reviews@issue/LMBQ-178 + uses: Lombiq/GitHub-Actions/.github/actions/check-pull-request-reviews@dev env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} @@ -137,11 +137,11 @@ jobs: (github.event_name == 'pull_request_review' && github.event.review.state == 'approved') || github.event_name == 'merge_group') && steps.add-prefix.outputs.prefixed-files != '@()' - uses: Lombiq/GitHub-Actions/.github/actions/verify-gha-refs@issue/LMBQ-178 + uses: Lombiq/GitHub-Actions/.github/actions/verify-gha-refs@dev with: called-repo-base-include-list: ${{ steps.add-prefix.outputs.prefixed-files }} expected-ref: ${{ steps.determine-ref.outputs.expected-ref }} - name: Verify GitHub Actions Items Match Expected Ref (Push) if: github.event_name == 'push' - uses: Lombiq/GitHub-Actions/.github/actions/verify-gha-refs@issue/LMBQ-178 + uses: Lombiq/GitHub-Actions/.github/actions/verify-gha-refs@dev diff --git a/.github/workflows/validate-this-pull-request.yml b/.github/workflows/validate-this-pull-request.yml index 1e7be09cf..c5abe45dc 100644 --- a/.github/workflows/validate-this-pull-request.yml +++ b/.github/workflows/validate-this-pull-request.yml @@ -7,4 +7,4 @@ on: jobs: validate-pull-request: - uses: Lombiq/GitHub-Actions/.github/workflows/validate-submodule-pull-request.yml@issue/LMBQ-178 + uses: Lombiq/GitHub-Actions/.github/workflows/validate-submodule-pull-request.yml@dev diff --git a/.github/workflows/yaml-lint-this-repo.yml b/.github/workflows/yaml-lint-this-repo.yml index dc1c44b35..430585523 100644 --- a/.github/workflows/yaml-lint-this-repo.yml +++ b/.github/workflows/yaml-lint-this-repo.yml @@ -10,7 +10,7 @@ on: jobs: yaml-linting: name: YAML Linting - uses: Lombiq/GitHub-Actions/.github/workflows/yaml-lint.yml@issue/LMBQ-178 + uses: Lombiq/GitHub-Actions/.github/workflows/yaml-lint.yml@dev with: config-file-path: .trunk/configs/.yamllint.yaml search-path: . diff --git a/.github/workflows/yaml-lint.yml b/.github/workflows/yaml-lint.yml index 20f2dd910..2c1d82db0 100644 --- a/.github/workflows/yaml-lint.yml +++ b/.github/workflows/yaml-lint.yml @@ -38,18 +38,18 @@ jobs: timeout-minutes: ${{ inputs.timeout-minutes }} steps: - name: Checkout - uses: Lombiq/GitHub-Actions/.github/actions/checkout@issue/LMBQ-178 + uses: Lombiq/GitHub-Actions/.github/actions/checkout@dev with: token: ${{ secrets.CHECKOUT_TOKEN }} - name: YAML Linting - uses: Lombiq/GitHub-Actions/.github/actions/yaml-lint@issue/LMBQ-178 + uses: Lombiq/GitHub-Actions/.github/actions/yaml-lint@dev with: config-file-path: ${{ inputs.config-file-path }} search-path: ${{ inputs.search-path }} - name: Cancel Workflow on Failure if: failure() && inputs.cancel-workflow-on-failure == 'true' - uses: Lombiq/GitHub-Actions/.github/actions/cancel-workflow@issue/LMBQ-178 + uses: Lombiq/GitHub-Actions/.github/actions/cancel-workflow@dev env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}