From 6e4ec92a65fb1ee08f5ccef1f8d43afee603a5d0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zolt=C3=A1n=20Leh=C3=B3czky?= Date: Sun, 12 Jan 2025 04:55:12 +0100 Subject: [PATCH] Pointing GHA to issue branch --- .../auto-merge-pull-request/action.yml | 6 ++- .../auto-transition-jira-issue/action.yml | 9 +++-- .github/actions/build-dotnet/action.yml | 3 +- .github/actions/checkout/action.yml | 3 +- .github/actions/markdown-lint/action.yml | 3 +- .../precompile-orchard1-app/action.yml | 9 +++-- .github/actions/publish-nuget/action.yml | 12 ++++-- .github/actions/setup-sql-server/action.yml | 3 +- .github/actions/spelling/action.yml | 3 +- .github/actions/test-dotnet/action.yml | 18 ++++++--- .../verify-dotnet-consolidation/action.yml | 3 +- .github/actions/workflow-telemetry/action.yml | 3 +- .github/workflows/build-and-test-dotnet.yml | 24 ++++++++---- .../workflows/build-and-test-orchard-core.yml | 39 ++++++++++++------- .github/workflows/build-dotnet.yml | 15 ++++--- ...-for-community-activities-in-this-repo.yml | 3 +- ...e-jira-issues-for-community-activities.yml | 3 +- .../deploy-orchard1-to-azure-app-service.yml | 21 ++++++---- .../workflows/deploy-to-azure-app-service.yml | 30 +++++++++----- .github/workflows/markdown-lint-this-repo.yml | 3 +- .github/workflows/markdown-lint.yml | 9 +++-- .github/workflows/msbuild-and-test.yml | 24 ++++++++---- .../post-pull-request-checks-automation.yml | 12 ++++-- .github/workflows/post-to-x.yml | 3 +- .github/workflows/publish-nuget.yml | 15 ++++--- .github/workflows/reset-azure-environment.yml | 12 ++++-- .github/workflows/spelling-this-repo.yml | 3 +- .github/workflows/spelling.yml | 15 ++++--- .../workflows/swap-azure-web-app-slots.yml | 21 ++++++---- .../swap-orchard1-azure-web-app-slots.yml | 12 ++++-- .github/workflows/tag-version-this-repo.yml | 3 +- .github/workflows/tag-version.yml | 9 +++-- .github/workflows/test-analysis-failure.yml | 15 ++++--- .github/workflows/validate-nuget-publish.yml | 3 +- .github/workflows/validate-pull-request.yml | 6 ++- .../validate-submodule-pull-request.yml | 6 ++- .github/workflows/validate-this-gha-refs.yml | 24 ++++++++---- .../workflows/validate-this-pull-request.yml | 3 +- .github/workflows/yaml-lint-this-repo.yml | 3 +- .github/workflows/yaml-lint.yml | 9 +++-- 40 files changed, 280 insertions(+), 140 deletions(-) diff --git a/.github/actions/auto-merge-pull-request/action.yml b/.github/actions/auto-merge-pull-request/action.yml index 32df66213..0b68157bc 100644 --- a/.github/actions/auto-merge-pull-request/action.yml +++ b/.github/actions/auto-merge-pull-request/action.yml @@ -23,7 +23,8 @@ 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/OSOE-962 +ax with: label1: merge-if-checks-succeed label2: merge-and-resolve-jira-issue-if-checks-succeed @@ -37,7 +38,8 @@ 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/OSOE-962 +ax 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..9109e87d7 100644 --- a/.github/actions/auto-transition-jira-issue/action.yml +++ b/.github/actions/auto-transition-jira-issue/action.yml @@ -15,7 +15,8 @@ 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/OSOE-962 +ax with: label1: done-jira-issue-if-checks-succeed label2: dummy @@ -23,7 +24,8 @@ 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/OSOE-962 +ax with: label1: resolve-jira-issue-if-checks-succeed label2: merge-and-resolve-jira-issue-if-checks-succeed @@ -41,7 +43,8 @@ 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/OSOE-962 +ax 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 d710ba55d..b536f94e3 100644 --- a/.github/actions/build-dotnet/action.yml +++ b/.github/actions/build-dotnet/action.yml @@ -211,7 +211,8 @@ 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/OSOE-962 +ax 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 dd87841f3..e884a0bc0 100644 --- a/.github/actions/checkout/action.yml +++ b/.github/actions/checkout/action.yml @@ -36,7 +36,8 @@ 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/OSOE-962 +ax with: checkout-token: ${{ inputs.token }} diff --git a/.github/actions/markdown-lint/action.yml b/.github/actions/markdown-lint/action.yml index 9ecb227b4..650d17651 100644 --- a/.github/actions/markdown-lint/action.yml +++ b/.github/actions/markdown-lint/action.yml @@ -57,7 +57,8 @@ 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/OSOE-962 +ax 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..1c880bb85 100644 --- a/.github/actions/precompile-orchard1-app/action.yml +++ b/.github/actions/precompile-orchard1-app/action.yml @@ -55,7 +55,8 @@ 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/OSOE-962 +ax with: repository: ${{ inputs.repository }} ref: ${{ inputs.checkout-ref }} @@ -63,7 +64,8 @@ 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/OSOE-962 +ax # 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 +74,8 @@ 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/OSOE-962 +ax 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 95de9c4c1..6bb1be486 100644 --- a/.github/actions/publish-nuget/action.yml +++ b/.github/actions/publish-nuget/action.yml @@ -142,7 +142,8 @@ 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/OSOE-962 +ax - name: Generate nuspec file if needed if: hashFiles('ConvertTo-Nuspec.ps1') @@ -150,7 +151,8 @@ 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/OSOE-962 +ax # Notes on the configuration: # * -p:NuGetBuild=true is our property to load Lombiq dependencies from NuGet by switching project references # to package references. @@ -248,14 +250,16 @@ runs: 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/OSOE-962 +ax 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/OSOE-962 +ax # Also preventing creating releases when pushing tags for issue-specific pre-releases like v4.3.1-alpha.osoe-86. if: inputs.dry-run != 'true' && !contains(steps.setup.outputs.publish-version, '-') with: diff --git a/.github/actions/setup-sql-server/action.yml b/.github/actions/setup-sql-server/action.yml index 6f512eb2d..c22911379 100644 --- a/.github/actions/setup-sql-server/action.yml +++ b/.github/actions/setup-sql-server/action.yml @@ -15,7 +15,8 @@ runs: # Installs the SQL Server command-line tools if they're not present (necessary for Ubuntu 24.04-based runners). - name: Install sqlcmd - uses: Lombiq/GitHub-Actions/.github/actions/install-sqlcmd@dev + uses: Lombiq/GitHub-Actions/.github/actions/install-sqlcmd@issue/OSOE-962 +ax # Needs to be a separate step, otherwise the Chocolatey installation won't be visible. - name: Wait for SQL Server to start diff --git a/.github/actions/spelling/action.yml b/.github/actions/spelling/action.yml index 62508821f..a5041f7e0 100644 --- a/.github/actions/spelling/action.yml +++ b/.github/actions/spelling/action.yml @@ -45,7 +45,8 @@ 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/OSOE-962 +ax post-comment: description: Flag for if check-spelling should post comment, the default is 1. required: false diff --git a/.github/actions/test-dotnet/action.yml b/.github/actions/test-dotnet/action.yml index 74d90b088..7a02d7ec6 100644 --- a/.github/actions/test-dotnet/action.yml +++ b/.github/actions/test-dotnet/action.yml @@ -92,7 +92,8 @@ 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/OSOE-962 +ax with: name: dotnet-dump version: 8.0.510501 @@ -128,7 +129,8 @@ 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/OSOE-962 +ax # 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: @@ -147,7 +149,8 @@ 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/OSOE-962 +ax # 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: @@ -163,7 +166,8 @@ 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/OSOE-962 +ax if: | failure() && steps.run-tests.outputs.test-count != 0 && @@ -176,7 +180,8 @@ 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/OSOE-962 +ax 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 }} @@ -185,7 +190,8 @@ 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/OSOE-962 +ax # 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..07d0af2c2 100644 --- a/.github/actions/verify-dotnet-consolidation/action.yml +++ b/.github/actions/verify-dotnet-consolidation/action.yml @@ -39,7 +39,8 @@ 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/OSOE-962 +ax 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 ed99702b4..8e24952f9 100644 --- a/.github/actions/workflow-telemetry/action.yml +++ b/.github/actions/workflow-telemetry/action.yml @@ -59,7 +59,8 @@ 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/OSOE-962 +ax 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 fcb4ce594..cdd983f11 100644 --- a/.github/workflows/build-and-test-dotnet.yml +++ b/.github/workflows/build-and-test-dotnet.yml @@ -224,37 +224,43 @@ 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/OSOE-962 +ax with: github_token: ${{ secrets.CHECKOUT_TOKEN }} - name: Set Environment Variables - uses: Lombiq/GitHub-Actions/.github/actions/set-environment-variables@dev + uses: Lombiq/GitHub-Actions/.github/actions/set-environment-variables@issue/OSOE-962 +ax env: ENVIRONMENT_VARIABLES_JSON: ${{ secrets.ENVIRONMENT_VARIABLES_JSON }} - name: Checkout - uses: Lombiq/GitHub-Actions/.github/actions/checkout@dev + uses: Lombiq/GitHub-Actions/.github/actions/checkout@issue/OSOE-962 +ax with: repository: ${{ inputs.repository }} ref: ${{ inputs.repository-ref }} 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/OSOE-962 +ax 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/OSOE-962 +ax 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/OSOE-962 +ax with: directory: ${{ inputs.build-directory}} configuration: ${{ inputs.build-configuration}} @@ -270,7 +276,8 @@ 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/OSOE-962 +ax with: blame-hang-timeout: ${{ inputs.blame-hang-timeout }} build-directory: ${{ inputs.build-directory }} @@ -284,6 +291,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/OSOE-962 +ax 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 223acce16..f583ee83e 100644 --- a/.github/workflows/build-and-test-orchard-core.yml +++ b/.github/workflows/build-and-test-orchard-core.yml @@ -246,12 +246,14 @@ 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/OSOE-962 +ax with: github_token: ${{ secrets.CHECKOUT_TOKEN }} - name: Set Environment Variables - uses: Lombiq/GitHub-Actions/.github/actions/set-environment-variables@dev + uses: Lombiq/GitHub-Actions/.github/actions/set-environment-variables@issue/OSOE-962 +ax env: ENVIRONMENT_VARIABLES_JSON: ${{ secrets.ENVIRONMENT_VARIABLES_JSON }} @@ -267,30 +269,35 @@ jobs: Write-Output $message - name: Checkout - uses: Lombiq/GitHub-Actions/.github/actions/checkout@dev + uses: Lombiq/GitHub-Actions/.github/actions/checkout@issue/OSOE-962 +ax with: repository: ${{ inputs.repository }} ref: ${{ inputs.repository-ref }} 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/OSOE-962 +ax 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/OSOE-962 +ax 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/OSOE-962 +ax - name: Build and Static Code Analysis - uses: Lombiq/GitHub-Actions/.github/actions/build-dotnet@dev + uses: Lombiq/GitHub-Actions/.github/actions/build-dotnet@issue/OSOE-962 +ax with: directory: ${{ inputs.build-directory }} configuration: ${{ inputs.build-configuration}} @@ -306,25 +313,30 @@ 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/OSOE-962 +ax - 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/OSOE-962 +ax - 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/OSOE-962 +ax - 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/OSOE-962 +ax with: location: ${{ inputs.build-directory}} - 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/OSOE-962 +ax with: blame-hang-timeout: ${{ inputs.blame-hang-timeout }} build-directory: ${{ inputs.build-directory }} @@ -339,6 +351,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/OSOE-962 +ax env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/build-dotnet.yml b/.github/workflows/build-dotnet.yml index 87b0a7c40..d4f71cb18 100644 --- a/.github/workflows/build-dotnet.yml +++ b/.github/workflows/build-dotnet.yml @@ -88,23 +88,27 @@ 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/OSOE-962 +ax 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/OSOE-962 +ax 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/OSOE-962 +ax 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/OSOE-962 +ax with: directory: ${{ inputs.build-directory}} verbosity: ${{ inputs.build-verbosity}} @@ -115,6 +119,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/OSOE-962 +ax 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..08e1b5679 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,8 @@ 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/OSOE-962 +ax 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 4446c0ec7..25624d2a0 100644 --- a/.github/workflows/create-jira-issues-for-community-activities.yml +++ b/.github/workflows/create-jira-issues-for-community-activities.yml @@ -60,7 +60,8 @@ 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/OSOE-962 +ax 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 40d576230..9477da8f3 100644 --- a/.github/workflows/deploy-orchard1-to-azure-app-service.yml +++ b/.github/workflows/deploy-orchard1-to-azure-app-service.yml @@ -128,12 +128,14 @@ 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/OSOE-962 +ax 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/OSOE-962 +ax # 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 +143,8 @@ 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/OSOE-962 +ax with: solution-or-project-path: Orchard.proj verbosity: ${{ inputs.build-verbosity }} @@ -152,14 +155,16 @@ 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/OSOE-962 +ax 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/OSOE-962 +ax - name: Stop Web App Slot run: | @@ -183,7 +188,8 @@ 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/OSOE-962 +ax with: release-name: 'Deploy #${{ github.run_number }} to ${{ inputs.slot-name }}' application-insights-resource-id: ${{ inputs.application-insights-resource-id }} @@ -216,6 +222,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/OSOE-962 +ax 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 a75102941..a9dbee6b8 100644 --- a/.github/workflows/deploy-to-azure-app-service.yml +++ b/.github/workflows/deploy-to-azure-app-service.yml @@ -158,17 +158,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/OSOE-962 +ax 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/OSOE-962 +ax 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/OSOE-962 +ax # 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 @@ -180,7 +183,8 @@ 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/OSOE-962 +ax with: directory: ${{ inputs.build-directory }} verbosity: ${{ inputs.build-verbosity }} @@ -217,14 +221,16 @@ 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/OSOE-962 +ax 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/OSOE-962 +ax - name: Stop Web App Slot run: | @@ -247,10 +253,12 @@ jobs: - name: Create Timestamp id: create-timestamp - uses: Lombiq/GitHub-Actions/.github/actions/create-timestamp@dev + uses: Lombiq/GitHub-Actions/.github/actions/create-timestamp@issue/OSOE-962 +ax - 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/OSOE-962 +ax with: release-name: 'Deploy #${{ github.run_number }} to ${{ inputs.slot-name }}' application-insights-resource-id: ${{ inputs.application-insights-resource-id }} @@ -258,7 +266,8 @@ jobs: - name: Remove Old Latest Tags if: ${{ inputs.skip-update-latest-tag != 'true' }} - uses: Lombiq/GitHub-Actions/.github/actions/remove-old-latest-tags@dev + uses: Lombiq/GitHub-Actions/.github/actions/remove-old-latest-tags@issue/OSOE-962 +ax with: tag-prefix: ${{ inputs.tag-prefix }} @@ -286,6 +295,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/OSOE-962 +ax 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..a3cfd5eee 100644 --- a/.github/workflows/markdown-lint-this-repo.yml +++ b/.github/workflows/markdown-lint-this-repo.yml @@ -10,7 +10,8 @@ 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/OSOE-962 +ax with: globs: '**/*.{md,markdown};!License.md' separator: ; diff --git a/.github/workflows/markdown-lint.yml b/.github/workflows/markdown-lint.yml index fe1b486aa..227a1f907 100644 --- a/.github/workflows/markdown-lint.yml +++ b/.github/workflows/markdown-lint.yml @@ -44,12 +44,14 @@ 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/OSOE-962 +ax 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/OSOE-962 +ax with: config: ${{ inputs.config }} fix: ${{ inputs.fix }} @@ -58,6 +60,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/OSOE-962 +ax env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/msbuild-and-test.yml b/.github/workflows/msbuild-and-test.yml index 6b8e9ae72..5c3a09913 100644 --- a/.github/workflows/msbuild-and-test.yml +++ b/.github/workflows/msbuild-and-test.yml @@ -128,31 +128,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@dev + uses: Lombiq/GitHub-Actions/.github/actions/workflow-telemetry@issue/OSOE-962 +ax with: github_token: ${{ secrets.CHECKOUT_TOKEN }} - name: Set Environment Variables - uses: Lombiq/GitHub-Actions/.github/actions/set-environment-variables@dev + uses: Lombiq/GitHub-Actions/.github/actions/set-environment-variables@issue/OSOE-962 +ax env: ENVIRONMENT_VARIABLES_JSON: ${{ secrets.ENVIRONMENT_VARIABLES_JSON }} - name: Checkout - uses: Lombiq/GitHub-Actions/.github/actions/checkout@dev + uses: Lombiq/GitHub-Actions/.github/actions/checkout@issue/OSOE-962 +ax with: repository: ${{ inputs.repository }} ref: ${{ inputs.repository-ref }} 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/OSOE-962 +ax # 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/OSOE-962 +ax - name: Build and Static Code Analysis - uses: Lombiq/GitHub-Actions/.github/actions/msbuild@dev + uses: Lombiq/GitHub-Actions/.github/actions/msbuild@issue/OSOE-962 +ax with: directory: ${{ inputs.build-directory }} solution-or-project-path: ${{ inputs.solution-or-project-path }} @@ -162,7 +168,8 @@ 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/OSOE-962 +ax with: build-directory: ${{ inputs.build-directory }} dotnet-test-process-timeout: ${{ inputs.dotnet-test-process-timeout }} @@ -172,6 +179,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/OSOE-962 +ax 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 5690b391f..07b17edc6 100644 --- a/.github/workflows/post-pull-request-checks-automation.yml +++ b/.github/workflows/post-pull-request-checks-automation.yml @@ -59,7 +59,8 @@ 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/OSOE-962 +ax id: check-steps-should-run env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} @@ -78,7 +79,8 @@ 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/OSOE-962 +ax env: GITHUB_TOKEN: ${{ env.MERGE_TOKEN }} with: @@ -86,7 +88,8 @@ 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/OSOE-962 +ax env: GITHUB_TOKEN: ${{ env.MERGE_TOKEN }} JIRA_BASE_URL: ${{ secrets.JIRA_BASE_URL }} @@ -95,7 +98,8 @@ 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/OSOE-962 +ax with: token: ${{ env.MERGE_TOKEN }} labels: merge-and-resolve-jira-issue-if-checks-succeed diff --git a/.github/workflows/post-to-x.yml b/.github/workflows/post-to-x.yml index 23e4fae24..0844d2d2d 100644 --- a/.github/workflows/post-to-x.yml +++ b/.github/workflows/post-to-x.yml @@ -40,7 +40,8 @@ jobs: if: github.event_name == 'push' && github.ref_name == github.event.repository.default_branch steps: - name: Checkout - uses: Lombiq/GitHub-Actions/.github/actions/checkout@dev + uses: Lombiq/GitHub-Actions/.github/actions/checkout@issue/OSOE-962 +ax - name: Post uses: twitter-together/action@08857009da2aacd9bd08204550ec96e15d76b4da # v3.1.0 diff --git a/.github/workflows/publish-nuget.yml b/.github/workflows/publish-nuget.yml index 377b57b64..48934f021 100644 --- a/.github/workflows/publish-nuget.yml +++ b/.github/workflows/publish-nuget.yml @@ -85,22 +85,26 @@ jobs: timeout-minutes: ${{ inputs.timeout-minutes }} steps: - name: Set Environment Variables - uses: Lombiq/GitHub-Actions/.github/actions/set-environment-variables@dev + uses: Lombiq/GitHub-Actions/.github/actions/set-environment-variables@issue/OSOE-962 +ax env: ENVIRONMENT_VARIABLES_JSON: ${{ secrets.ENVIRONMENT_VARIABLES_JSON }} - name: Checkout - uses: Lombiq/GitHub-Actions/.github/actions/checkout@dev + uses: Lombiq/GitHub-Actions/.github/actions/checkout@issue/OSOE-962 +ax 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/OSOE-962 +ax 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/OSOE-962 +ax with: source: ${{ inputs.source }} verbosity: ${{ inputs.verbosity }} @@ -116,6 +120,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/OSOE-962 +ax env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/reset-azure-environment.yml b/.github/workflows/reset-azure-environment.yml index 50befeceb..b00f481af 100644 --- a/.github/workflows/reset-azure-environment.yml +++ b/.github/workflows/reset-azure-environment.yml @@ -133,14 +133,16 @@ 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/OSOE-962 +ax 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/OSOE-962 +ax - name: Stop Web App Slot run: | @@ -193,7 +195,8 @@ 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/OSOE-962 +ax 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 +238,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/OSOE-962 +ax env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/spelling-this-repo.yml b/.github/workflows/spelling-this-repo.yml index cc1d2dd9b..3fc26c9f0 100644 --- a/.github/workflows/spelling-this-repo.yml +++ b/.github/workflows/spelling-this-repo.yml @@ -11,7 +11,8 @@ on: jobs: spelling: name: Spelling - uses: Lombiq/GitHub-Actions/.github/workflows/spelling.yml@dev + uses: Lombiq/GitHub-Actions/.github/workflows/spelling.yml@issue/OSOE-962 +ax with: additional-dictionaries: | cspell:companies/src/companies.txt diff --git a/.github/workflows/spelling.yml b/.github/workflows/spelling.yml index c516cb0d8..0729e84ef 100644 --- a/.github/workflows/spelling.yml +++ b/.github/workflows/spelling.yml @@ -79,7 +79,8 @@ 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/OSOE-962 +ax timeout-minutes: type: number default: 3 @@ -94,7 +95,8 @@ 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/OSOE-962 +ax with: token: ${{ secrets.CHECKOUT_TOKEN }} @@ -111,7 +113,8 @@ jobs: - name: Check Spelling id: check-spelling-action - uses: Lombiq/GitHub-Actions/.github/actions/spelling@dev + uses: Lombiq/GitHub-Actions/.github/actions/spelling@issue/OSOE-962 +ax with: merge-file-excludes: ${{ inputs.merge-file-excludes }} merge-forbidden-patterns: ${{ inputs.merge-forbidden-patterns }} @@ -125,7 +128,8 @@ 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/OSOE-962 +ax env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} @@ -138,7 +142,8 @@ 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/OSOE-962 +ax 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 4459f1fb1..c09387cc3 100644 --- a/.github/workflows/swap-azure-web-app-slots.yml +++ b/.github/workflows/swap-azure-web-app-slots.yml @@ -111,14 +111,16 @@ 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/OSOE-962 +ax 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/OSOE-962 +ax - name: Test Source Web App Slot run: | @@ -137,7 +139,8 @@ jobs: - name: Create Timestamp id: create-timestamp - uses: Lombiq/GitHub-Actions/.github/actions/create-timestamp@dev + uses: Lombiq/GitHub-Actions/.github/actions/create-timestamp@issue/OSOE-962 +ax - name: Test Destination Web App Slot run: | @@ -148,7 +151,8 @@ jobs: - name: Checkout Code Repository if: inputs.app-code-repository != '' - uses: Lombiq/GitHub-Actions/.github/actions/checkout@dev + uses: Lombiq/GitHub-Actions/.github/actions/checkout@issue/OSOE-962 +ax with: repository: ${{ inputs.app-code-repository }} token: ${{ secrets.CODE_REPOSITORY_WRITE_TOKEN }} @@ -209,7 +213,8 @@ jobs: "commit-sha=$stagingLatest" >> $Env:GITHUB_OUTPUT - 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/OSOE-962 +ax 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 }} @@ -225,7 +230,8 @@ jobs: "repo-name=$repoName" >> $Env:GITHUB_OUTPUT - name: Create Release - uses: Lombiq/GitHub-Actions/.github/actions/release-action@dev + uses: Lombiq/GitHub-Actions/.github/actions/release-action@issue/OSOE-962 +ax if: inputs.app-code-repository != '' with: repo: ${{ steps.extract-repo-name.outputs.repo-name }} @@ -237,6 +243,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/OSOE-962 +ax 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 54e6bce71..bdf06923a 100644 --- a/.github/workflows/swap-orchard1-azure-web-app-slots.yml +++ b/.github/workflows/swap-orchard1-azure-web-app-slots.yml @@ -92,14 +92,16 @@ 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/OSOE-962 +ax 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/OSOE-962 +ax - name: Swap Web App Slots run: | @@ -111,7 +113,8 @@ 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/OSOE-962 +ax 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 +133,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/OSOE-962 +ax 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 d96c60777..5a1a8c47f 100644 --- a/.github/workflows/tag-version-this-repo.yml +++ b/.github/workflows/tag-version-this-repo.yml @@ -9,7 +9,8 @@ jobs: tag-version: 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/OSOE-962 +ax 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 79abb2318..1b7f5daca 100644 --- a/.github/workflows/tag-version.yml +++ b/.github/workflows/tag-version.yml @@ -77,7 +77,8 @@ jobs: shell: pwsh steps: - name: Checkout Repository - uses: Lombiq/GitHub-Actions/.github/actions/checkout@dev + uses: Lombiq/GitHub-Actions/.github/actions/checkout@issue/OSOE-962 +ax with: token: ${{ secrets.TAG_VERSION_TOKEN }} @@ -90,7 +91,8 @@ 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/OSOE-962 +ax with: path-include-list: ${{ inputs.path-include-list }} file-include-list: ${{ inputs.file-include-list }} @@ -109,7 +111,8 @@ 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/OSOE-962 +ax # 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 de53b3d48..8d4d5acb3 100644 --- a/.github/workflows/test-analysis-failure.yml +++ b/.github/workflows/test-analysis-failure.yml @@ -74,20 +74,24 @@ 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/OSOE-962 +ax 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/OSOE-962 +ax 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/OSOE-962 +ax - name: Build and Static Code Analysis - uses: Lombiq/GitHub-Actions/.github/actions/build-dotnet@dev + uses: Lombiq/GitHub-Actions/.github/actions/build-dotnet@issue/OSOE-962 +ax with: directory: ${{ inputs.build-directory }} verbosity: quiet @@ -99,6 +103,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/OSOE-962 +ax env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/validate-nuget-publish.yml b/.github/workflows/validate-nuget-publish.yml index a2b7e94be..fd5db6eb4 100644 --- a/.github/workflows/validate-nuget-publish.yml +++ b/.github/workflows/validate-nuget-publish.yml @@ -55,7 +55,8 @@ on: jobs: validate-nuget-publish: name: Validate NuGet Publish - uses: Lombiq/GitHub-Actions/.github/workflows/publish-nuget.yml@dev + uses: Lombiq/GitHub-Actions/.github/workflows/publish-nuget.yml@issue/OSOE-962 +ax with: cancel-workflow-on-failure: ${{ inputs.cancel-workflow-on-failure }} verbosity: ${{ inputs.verbosity }} diff --git a/.github/workflows/validate-pull-request.yml b/.github/workflows/validate-pull-request.yml index a299baee6..8dea53242 100644 --- a/.github/workflows/validate-pull-request.yml +++ b/.github/workflows/validate-pull-request.yml @@ -22,12 +22,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/OSOE-962 +ax 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/OSOE-962 +ax 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 8bcb5eb67..399066cd7 100644 --- a/.github/workflows/validate-submodule-pull-request.yml +++ b/.github/workflows/validate-submodule-pull-request.yml @@ -34,14 +34,16 @@ 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/OSOE-962 +ax 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/OSOE-962 +ax 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 4755f92c4..613fd11cb 100644 --- a/.github/workflows/validate-this-gha-refs.yml +++ b/.github/workflows/validate-this-gha-refs.yml @@ -18,18 +18,21 @@ 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/OSOE-962 +ax 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/OSOE-962 +ax - 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/OSOE-962 +ax env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} @@ -54,7 +57,8 @@ 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/OSOE-962 +ax with: left-commit: ${{ github.event_name == 'merge_group' && github.event.merge_group.base_sha || github.event.pull_request.base.sha }} right-commit: ${{ github.sha }} @@ -66,7 +70,8 @@ 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/OSOE-962 +ax with: file-include-list: ${{ steps.git-diff.outputs.changed-files }} @@ -88,7 +93,8 @@ 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/OSOE-962 +ax env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} @@ -138,11 +144,13 @@ 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/OSOE-962 +ax 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/OSOE-962 +ax diff --git a/.github/workflows/validate-this-pull-request.yml b/.github/workflows/validate-this-pull-request.yml index c5abe45dc..9d20af389 100644 --- a/.github/workflows/validate-this-pull-request.yml +++ b/.github/workflows/validate-this-pull-request.yml @@ -7,4 +7,5 @@ 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/OSOE-962 +ax diff --git a/.github/workflows/yaml-lint-this-repo.yml b/.github/workflows/yaml-lint-this-repo.yml index 430585523..e5aa6d519 100644 --- a/.github/workflows/yaml-lint-this-repo.yml +++ b/.github/workflows/yaml-lint-this-repo.yml @@ -10,7 +10,8 @@ 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/OSOE-962 +ax 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 1325bfcfa..9ef2ccf56 100644 --- a/.github/workflows/yaml-lint.yml +++ b/.github/workflows/yaml-lint.yml @@ -38,18 +38,21 @@ 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/OSOE-962 +ax 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/OSOE-962 +ax 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/OSOE-962 +ax env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}