Skip to content

Commit

Permalink
Set GitHub Actions/Workflows to tag v2.0.1-alpha.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Piedone authored and github-actions[bot] committed Oct 31, 2024
1 parent a2f9b31 commit 9514d75
Show file tree
Hide file tree
Showing 39 changed files with 132 additions and 132 deletions.
4 changes: 2 additions & 2 deletions .github/actions/auto-merge-pull-request/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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@v2.0.1-alpha.0
with:
label1: merge-if-checks-succeed
label2: merge-and-resolve-jira-issue-if-checks-succeed
Expand All @@ -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@v2.0.1-alpha.0
with:
token: ${{ env.GITHUB_TOKEN }}
labels: merge-if-checks-succeed
Expand Down
6 changes: 3 additions & 3 deletions .github/actions/auto-transition-jira-issue/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,15 @@ 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@v2.0.1-alpha.0
with:
label1: done-jira-issue-if-checks-succeed
label2: dummy

- 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@v2.0.1-alpha.0
with:
label1: resolve-jira-issue-if-checks-succeed
label2: merge-and-resolve-jira-issue-if-checks-succeed
Expand All @@ -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@v2.0.1-alpha.0
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
Expand Down
2 changes: 1 addition & 1 deletion .github/actions/build-dotnet/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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@v2.0.1-alpha.0
if: (success() || failure()) && inputs.create-binary-log == 'true'
with:
name: build-binary-log-${{ steps.build.outputs.artifact-name-suffix }}.binlog
Expand Down
2 changes: 1 addition & 1 deletion .github/actions/checkout/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,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@v2.0.1-alpha.0
with:
checkout-token: ${{ inputs.token }}

Expand Down
2 changes: 1 addition & 1 deletion .github/actions/markdown-lint/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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@v2.0.1-alpha.0
if: inputs.fix == 'true' && steps.markdown-lint-fix-files.outputs.has-fixes == 'true'
with:
name: markdown-lint-fixed-files
Expand Down
6 changes: 3 additions & 3 deletions .github/actions/precompile-orchard1-app/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,15 +55,15 @@ 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@v2.0.1-alpha.0
with:
repository: ${{ inputs.repository }}
ref: ${{ inputs.checkout-ref }}
token: ${{ inputs.token }}
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@v2.0.1-alpha.0

# 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.
Expand All @@ -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@v2.0.1-alpha.0
with:
directory: ${{ inputs.checkout-path }}
verbosity: ${{ inputs.verbosity }}
Expand Down
8 changes: 4 additions & 4 deletions .github/actions/publish-nuget/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -133,15 +133,15 @@ 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@v2.0.1-alpha.0

- name: Generate nuspec file if needed
if: hashFiles('ConvertTo-Nuspec.ps1')
shell: pwsh
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@v2.0.1-alpha.0
# Notes on the configuration:
# * -p:NuGetBuild=true is our property to load Lombiq dependencies from NuGet by switching project references
# to package references.
Expand Down Expand Up @@ -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@v2.0.1-alpha.0
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@v2.0.1-alpha.0
# 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, '-')"
Expand Down
2 changes: 1 addition & 1 deletion .github/actions/setup-sql-server/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ 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@v2.0.1-alpha.0

# Needs to be a separate step, otherwise the Chocolatey installation won't be visible.
- name: Wait for SQL Server to start
Expand Down
2 changes: 1 addition & 1 deletion .github/actions/spelling/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/v2.0.1-alpha.0/.github/actions/spelling/'
'cspell' = 'https://raw.githubusercontent.com/check-spelling/cspell-dicts/v20230509/dictionaries/'
}
Expand Down
12 changes: 6 additions & 6 deletions .github/actions/test-dotnet/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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@v2.0.1-alpha.0
with:
name: dotnet-dump
version: 8.0.510501
Expand Down Expand Up @@ -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@v2.0.1-alpha.0
# 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:
Expand All @@ -147,7 +147,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@v2.0.1-alpha.0
# 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:
Expand All @@ -163,7 +163,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@v2.0.1-alpha.0
if: |
failure() &&
steps.run-tests.outputs.test-count != 0 &&
Expand All @@ -176,7 +176,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@v2.0.1-alpha.0
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 }}
Expand All @@ -185,7 +185,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@v2.0.1-alpha.0
# 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
Expand Down
2 changes: 1 addition & 1 deletion .github/actions/verify-dotnet-consolidation/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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@v2.0.1-alpha.0
with:
name: dotnet-consolidate
version: 4.2.0
Expand Down
2 changes: 1 addition & 1 deletion .github/actions/workflow-telemetry/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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@v2.0.1-alpha.0
with:
checkout-token: ${{ inputs.github_token }}

Expand Down
16 changes: 8 additions & 8 deletions .github/workflows/build-and-test-dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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@dev
uses: Lombiq/GitHub-Actions/.github/actions/workflow-telemetry@v2.0.1-alpha.0
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@v2.0.1-alpha.0
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@v2.0.1-alpha.0
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@v2.0.1-alpha.0
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@v2.0.1-alpha.0
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@v2.0.1-alpha.0
with:
directory: ${{ inputs.build-directory}}
configuration: ${{ inputs.build-configuration}}
Expand All @@ -270,7 +270,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@v2.0.1-alpha.0
with:
blame-hang-timeout: ${{ inputs.blame-hang-timeout }}
build-directory: ${{ inputs.build-directory }}
Expand All @@ -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@dev
uses: Lombiq/GitHub-Actions/.github/actions/cancel-workflow@v2.0.1-alpha.0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
26 changes: 13 additions & 13 deletions .github/workflows/build-and-test-orchard-core.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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@dev
uses: Lombiq/GitHub-Actions/.github/actions/workflow-telemetry@v2.0.1-alpha.0
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@v2.0.1-alpha.0
env:
ENVIRONMENT_VARIABLES_JSON: ${{ secrets.ENVIRONMENT_VARIABLES_JSON }}

Expand All @@ -267,30 +267,30 @@ jobs:
Write-Output $message
- name: Checkout
uses: Lombiq/GitHub-Actions/.github/actions/checkout@dev
uses: Lombiq/GitHub-Actions/.github/actions/checkout@v2.0.1-alpha.0
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@v2.0.1-alpha.0
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@v2.0.1-alpha.0
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@v2.0.1-alpha.0

- name: Build and Static Code Analysis
uses: Lombiq/GitHub-Actions/.github/actions/build-dotnet@dev
uses: Lombiq/GitHub-Actions/.github/actions/build-dotnet@v2.0.1-alpha.0
with:
directory: ${{ inputs.build-directory }}
configuration: ${{ inputs.build-configuration}}
Expand All @@ -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@dev
uses: Lombiq/GitHub-Actions/.github/actions/print-config-summary@v2.0.1-alpha.0

- 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@v2.0.1-alpha.0

- 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@v2.0.1-alpha.0

- 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@v2.0.1-alpha.0
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@v2.0.1-alpha.0
with:
blame-hang-timeout: ${{ inputs.blame-hang-timeout }}
build-directory: ${{ inputs.build-directory }}
Expand All @@ -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@dev
uses: Lombiq/GitHub-Actions/.github/actions/cancel-workflow@v2.0.1-alpha.0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Loading

0 comments on commit 9514d75

Please sign in to comment.