Skip to content

Next Gen STEP AP242 Native-ish BREP Geometric Modeling Kernel

Preserve large GitHub run identifiers as strings

Yuechen Lic9ca183a6337
diff --git a/.github/workflows/cadmata-desktop-diagnostic.yml b/.github/workflows/cadmata-desktop-diagnostic.yml
index 4ed29b5c..df2af1b1 100644
--- a/.github/workflows/cadmata-desktop-diagnostic.yml
+++ b/.github/workflows/cadmata-desktop-diagnostic.yml
@@ -4,13 +4,13 @@ on:
workflow_call:
inputs:
run_id:
- type: number
+ type: string
required: true
workflow_dispatch:
inputs:
run_id:
description: Producer run containing the aetheris-release artifact
- type: number
+ type: string
required: true
permissions:
@@ -28,6 +28,7 @@ jobs:
GH_TOKEN: ${{ github.token }}
PRODUCER_RUN: ${{ inputs.run_id }}
run: |
+ if ($env:PRODUCER_RUN -notmatch '^\d+$') { throw 'Producer run ID must contain only digits' }
$source = gh api "repos/$env:GITHUB_REPOSITORY/actions/runs/$env:PRODUCER_RUN" --jq .head_sha
if ($LASTEXITCODE -ne 0) { throw 'Cannot resolve producer source' }
"revision=$source" >> $env:GITHUB_OUTPUT
diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml
index a38ec41f..412212c8 100644
--- a/.github/workflows/dotnet.yml
+++ b/.github/workflows/dotnet.yml
@@ -12,9 +12,9 @@ on:
type: boolean
default: false
diagnostic_run_id:
- description: Diagnose an existing release artifact without rebuilding it (0 runs full qualification)
- type: number
- default: 0
+ description: Diagnose an existing release artifact without rebuilding it (empty runs full qualification)
+ type: string
+ default: ''
env:
MSBUILDDISABLENODEREUSE: '1'
@@ -286,7 +286,7 @@ jobs:
gh release edit "v${RELEASE_VERSION}" --repo "${GITHUB_REPOSITORY}" --latest --prerelease=false --notes-file docs/release/${{ needs.release-build.outputs.version }}-notes.md
desktop-diagnostic:
- if: ${{ inputs.diagnostic_run_id > 0 }}
+ if: ${{ inputs.diagnostic_run_id != '' }}
permissions:
actions: read
contents: read