Skip to content

Commit

Permalink
Set GitHub Actions/Workflows to tag v1.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
BenedekFarkas authored and github-actions[bot] committed Jun 5, 2024
1 parent 12a465f commit 385f363
Show file tree
Hide file tree
Showing 35 changed files with 114 additions and 114 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@v1.2.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@v1.2.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@v1.2.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@v1.2.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@v1.2.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 @@ -204,7 +204,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@v1.2.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/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@v1.2.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@v1.2.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@v1.2.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@v1.2.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 @@ -120,15 +120,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@v1.2.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@v1.2.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 @@ -213,14 +213,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@v1.2.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@v1.2.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/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/v1.2.0/.github/actions/spelling/'
'cspell' = 'https://raw.githubusercontent.com/check-spelling/cspell-dicts/v20230509/dictionaries/'
}
Expand Down
8 changes: 4 additions & 4 deletions .github/actions/test-dotnet/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ runs:
"Lombiq_Tests_UI__OrchardCoreUITestExecutorConfiguration__MaxParallelTests=${{ inputs.ui-test-parallelism }}" >> $Env:GITHUB_ENV
- name: Install dotnet-dump
uses: Lombiq/GitHub-Actions/.github/actions/install-dotnet-tool@dev
uses: Lombiq/GitHub-Actions/.github/actions/install-dotnet-tool@v1.2.0
with:
name: dotnet-dump
version: 8.0.510501
Expand Down Expand Up @@ -121,7 +121,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@v1.2.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 @@ -137,7 +137,7 @@ runs:
run: Merge-BlameHangDumps -Directory "${{ inputs.build-directory }}" -Configuration "${{ inputs.test-configuration }}"

- name: Upload BlameHangDumps
uses: Lombiq/GitHub-Actions/.github/actions/upload-artifact@dev
uses: Lombiq/GitHub-Actions/.github/actions/upload-artifact@v1.2.0
if: failure() && steps.run-tests.outputs.test-count != 0 && inputs.blame-hang-timeout != '' && steps.merge-blame-hang-dumps.outputs.dump-count != 0
with:
name: ui-test-blame-hang-dump-${{ steps.setup.outputs.artifact-name-suffix }}
Expand All @@ -146,7 +146,7 @@ runs:
retention-days: ${{ inputs.ui-test-artifact-retention-days }}

- name: Upload DotnetTestHangDumps
uses: Lombiq/GitHub-Actions/.github/actions/upload-artifact@dev
uses: Lombiq/GitHub-Actions/.github/actions/upload-artifact@v1.2.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 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@v1.2.0
with:
name: dotnet-consolidate
version: 4.2.0
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/build-and-test-dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -187,25 +187,25 @@ jobs:
cancel-in-progress: ${{ inputs.cancel-in-progress-for-this-pr == 'true' }}
steps:
- name: Checkout
uses: Lombiq/GitHub-Actions/.github/actions/checkout@dev
uses: Lombiq/GitHub-Actions/.github/actions/checkout@v1.2.0
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@v1.2.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@v1.2.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@v1.2.0
with:
directory: ${{ inputs.build-directory}}
configuration: ${{ inputs.build-configuration}}
Expand All @@ -221,7 +221,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@v1.2.0
with:
blame-hang-timeout: ${{ inputs.blame-hang-timeout }}
build-directory: ${{ inputs.build-directory }}
Expand All @@ -233,6 +233,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@v1.2.0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
20 changes: 10 additions & 10 deletions .github/workflows/build-and-test-orchard-core.yml
Original file line number Diff line number Diff line change
Expand Up @@ -210,28 +210,28 @@ jobs:
cancel-in-progress: ${{ inputs.cancel-in-progress-for-this-pr == 'true' }}
steps:
- name: Checkout
uses: Lombiq/GitHub-Actions/.github/actions/checkout@dev
uses: Lombiq/GitHub-Actions/.github/actions/checkout@v1.2.0
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@v1.2.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@v1.2.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@v1.2.0

- name: Build and Static Code Analysis
uses: Lombiq/GitHub-Actions/.github/actions/build-dotnet@dev
uses: Lombiq/GitHub-Actions/.github/actions/build-dotnet@v1.2.0
with:
directory: ${{ inputs.build-directory }}
configuration: ${{ inputs.build-configuration}}
Expand All @@ -247,21 +247,21 @@ 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@v1.2.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@v1.2.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@v1.2.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@v1.2.0
with:
blame-hang-timeout: ${{ inputs.blame-hang-timeout }}
build-directory: ${{ inputs.build-directory }}
Expand All @@ -275,6 +275,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@v1.2.0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
10 changes: 5 additions & 5 deletions .github/workflows/build-dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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@v1.2.0
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@v1.2.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@v1.2.0
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@v1.2.0
with:
directory: ${{ inputs.build-directory}}
verbosity: ${{ inputs.build-verbosity}}
Expand All @@ -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@v1.2.0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change
Expand Up @@ -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@v1.2.0
secrets:
JIRA_BASE_URL: ${{ secrets.DEFAULT_JIRA_BASE_URL }}
JIRA_USER_EMAIL: ${{ secrets.DEFAULT_JIRA_USER_EMAIL }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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@v1.2.0
env:
JIRA_BASE_URL: ${{ secrets.JIRA_BASE_URL }}
JIRA_USER_EMAIL: ${{ secrets.JIRA_USER_EMAIL }}
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/deploy-orchard1-to-azure-app-service.yml
Original file line number Diff line number Diff line change
Expand Up @@ -122,20 +122,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@v1.2.0
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@v1.2.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.
- name: Restore NuGet packages
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@v1.2.0
with:
solution-or-project-path: Orchard.proj
verbosity: ${{ inputs.build-verbosity }}
Expand All @@ -146,7 +146,7 @@ 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@v1.2.0
env:
AZURE_CLIENT_ID: ${{ secrets.AZURE_APP_SERVICE_DEPLOYMENT_SERVICE_PRINCIPAL_ID }}
AZURE_TENANT_ID: ${{ secrets.AZURE_APP_SERVICE_DEPLOYMENT_AZURE_TENANT_ID }}
Expand Down Expand Up @@ -177,7 +177,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@v1.2.0
with:
release-name: 'Deploy #${{ github.run_number }} to ${{ inputs.slot-name }}'
application-insights-resource-id: ${{ inputs.application-insights-resource-id }}
Expand Down Expand Up @@ -210,6 +210,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@v1.2.0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Loading

0 comments on commit 385f363

Please sign in to comment.