Skip to content

Commit

Permalink
use snake_case for output variables
Browse files Browse the repository at this point in the history
  • Loading branch information
arturcic committed Jan 21, 2025
1 parent e410ef6 commit cf3a474
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 15 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build-deps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
name: Prepare Build
runs-on: ubuntu-24.04
outputs:
dockerDistros: ${{ steps.set_matrix.outputs.dockerDistros }}
docker_distros: ${{ steps.set_matrix.outputs.docker_distros }}
steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down Expand Up @@ -55,12 +55,12 @@ jobs:
with:
runner: ${{ matrix.runner }}
arch: ${{ matrix.arch }}
docker_distros: ${{ needs.prepare.outputs.dockerDistros }}
docker_distros: ${{ needs.prepare.outputs.docker_distros }}

build_deps_manifests:
name: Build Deps Manifests
secrets: inherit
needs: [ prepare, build_deps ]
uses: ./.github/workflows/_build-deps-manifest.yml
with:
docker_distros: ${{ needs.prepare.outputs.dockerDistros }}
docker_distros: ${{ needs.prepare.outputs.docker_distros }}
18 changes: 9 additions & 9 deletions .github/workflows/build-images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ jobs:
name: Prepare Build
runs-on: ubuntu-24.04
outputs:
dockerDistros: ${{ steps.set_matrix.outputs.dockerDistros }}
dotnetVersions: ${{ steps.set_matrix.outputs.dotnetVersions }}
dotnetVariants: ${{ steps.set_matrix.outputs.dotnetVariants }}
docker_distros: ${{ steps.set_matrix.outputs.docker_distros }}
dotnet_versions: ${{ steps.set_matrix.outputs.dotnet_versions }}
dotnet_variants: ${{ steps.set_matrix.outputs.dotnet_variants }}
if: ${{ github.event.workflow_run.conclusion == 'success' || github.event_name == 'workflow_dispatch' }}
steps:
- name: Checkout
Expand Down Expand Up @@ -42,7 +42,7 @@ jobs:
strategy:
fail-fast: false
matrix:
dotnet_variant: ${{ fromJson(needs.prepare.outputs.dotnetVariants) }}
dotnet_variant: ${{ fromJson(needs.prepare.outputs.dotnet_variants) }}
arch: [ amd64, arm64 ]
runner: [ ubuntu-24.04, ubuntu-24.04-arm ]
exclude:
Expand All @@ -56,8 +56,8 @@ jobs:
runner: ${{ matrix.runner }}
arch: ${{ matrix.arch }}
dotnet_variant: ${{ matrix.dotnet_variant }}
dotnet_versions: ${{ needs.prepare.outputs.dotnetVersions }}
docker_distros: ${{ needs.prepare.outputs.dockerDistros }}
dotnet_versions: ${{ needs.prepare.outputs.dotnet_versions }}
docker_distros: ${{ needs.prepare.outputs.docker_distros }}

build_images_manifest:
name: Build Images Manifest (${{ matrix.dotnet_variant }})
Expand All @@ -66,11 +66,11 @@ jobs:
strategy:
fail-fast: false
matrix:
dotnet_variant: ${{ fromJson(needs.prepare.outputs.dotnetVariants) }}
dotnet_variant: ${{ fromJson(needs.prepare.outputs.dotnet_variants) }}

uses: ./.github/workflows/_build-images-manifest.yml
with:
runner: ${{ matrix.runner }}
dotnet_variant: ${{ matrix.dotnet_variant }}
dotnet_versions: ${{ needs.prepare.outputs.dotnetVersions }}
docker_distros: ${{ needs.prepare.outputs.dockerDistros }}
dotnet_versions: ${{ needs.prepare.outputs.dotnet_versions }}
docker_distros: ${{ needs.prepare.outputs.docker_distros }}
6 changes: 3 additions & 3 deletions build/build/Tasks/SetMatrix.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ public override void Run(BuildContext context)
{
if (context.BuildSystem().IsRunningOnGitHubActions)
{
context.GitHubActions().Commands.SetOutputParameter("dockerDistros", context.SerializeJson(Constants.DockerDistros));
context.GitHubActions().Commands.SetOutputParameter("dotnetVersions", context.SerializeJson(Constants.DotnetVersions));
context.GitHubActions().Commands.SetOutputParameter("dotnetVariants", context.SerializeJson(Constants.DotnetVariants));
context.GitHubActions().Commands.SetOutputParameter("docker_distros", context.SerializeJson(Constants.DockerDistros));
context.GitHubActions().Commands.SetOutputParameter("dotnet_versions", context.SerializeJson(Constants.DotnetVersions));
context.GitHubActions().Commands.SetOutputParameter("dotnet_variants", context.SerializeJson(Constants.DotnetVariants));
}
else
{
Expand Down

0 comments on commit cf3a474

Please sign in to comment.