From bbd95371ff1e136bc25a4273e6d2c2bb475b3548 Mon Sep 17 00:00:00 2001 From: Joao Grassi <5938087+joaopgrassi@users.noreply.github.com> Date: Thu, 12 Sep 2024 18:03:06 +0200 Subject: [PATCH] Fix checks --- .github/workflows/semconv-validation.yml | 2 +- build/scripts/check-semconv-versions.ps1 | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/semconv-validation.yml b/.github/workflows/semconv-validation.yml index 91f6faac0f..ab0db2d6e6 100644 --- a/.github/workflows/semconv-validation.yml +++ b/.github/workflows/semconv-validation.yml @@ -6,7 +6,7 @@ on: - "src/OpenTelemetry.SemanticConventions/**" jobs: - run-dotnet-format: + run-semconv-checks: runs-on: ubuntu-latest steps: diff --git a/build/scripts/check-semconv-versions.ps1 b/build/scripts/check-semconv-versions.ps1 index af63452065..4a566dd198 100644 --- a/build/scripts/check-semconv-versions.ps1 +++ b/build/scripts/check-semconv-versions.ps1 @@ -12,7 +12,7 @@ $PsWeaverVersion = Select-String -Path $PowerShellScript -Pattern '\$GENERATOR_V # Bash semconv version $BashSemConvVersion = Select-String -Path $BashScript -Pattern 'SEMCONV_VERSION="([^"]+)"' | ForEach-Object { $_.Matches.Groups[1].Value } # Bash weaver version -$BashWeaverVersion = Select-String -Path $BashScript -Pattern 'SEMCONV_VERSION="([^"]+)"' | ForEach-Object { $_.Matches.Groups[1].Value } +$BashWeaverVersion = Select-String -Path $BashScript -Pattern 'GENERATOR_VERSION="([^"]+)"' | ForEach-Object { $_.Matches.Groups[1].Value } # Check if the semconv versions match if ($PsSemConvVersion -ne $BashSemConvVersion) {