Skip to content

Commit fcdb74e

Browse files
committed
fix: Correct YAML syntax for runner selection
Put entire expression on single line to avoid YAML parsing issues
1 parent da02928 commit fcdb74e

File tree

2 files changed

+2
-10
lines changed

2 files changed

+2
-10
lines changed

.github/workflows/_checks-rs.yaml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -187,11 +187,7 @@ permissions:
187187

188188
jobs:
189189
checks-rust:
190-
runs-on: ${{ fromJSON(
191-
inputs.runner_preset == 'macos-arm64' && '["self-hosted", "macOS", "ARM64"]' ||
192-
inputs.runner_preset == 'linux-amd64' && '["zondax-runners"]' ||
193-
'["zondax-runners"]'
194-
) }}
190+
runs-on: ${{ fromJSON(inputs.runner_preset == 'macos-arm64' && '["self-hosted", "macOS", "ARM64"]' || inputs.runner_preset == 'linux-amd64' && '["zondax-runners"]' || '["zondax-runners"]') }}
195191
container: ${{ inputs.runner_preset == 'linux-amd64' && inputs.base_image || '' }}
196192
timeout-minutes: ${{ inputs.timeout_minutes }}
197193
environment: ${{ inputs.environment }}

.github/workflows/_checks-ts.yaml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -114,11 +114,7 @@ on:
114114

115115
jobs:
116116
checks-ts:
117-
runs-on: ${{ fromJSON(
118-
inputs.runner_preset == 'macos-arm64' && '["self-hosted", "macOS", "ARM64"]' ||
119-
inputs.runner_preset == 'linux-amd64' && '["zondax-runners"]' ||
120-
'["zondax-runners"]'
121-
) }}
117+
runs-on: ${{ fromJSON(inputs.runner_preset == 'macos-arm64' && '["self-hosted", "macOS", "ARM64"]' || inputs.runner_preset == 'linux-amd64' && '["zondax-runners"]' || '["zondax-runners"]') }}
122118
container: ${{ inputs.runner_preset == 'linux-amd64' && inputs.base_image || '' }}
123119
timeout-minutes: ${{ inputs.timeout_minutes }}
124120
environment: ${{ inputs.environment }}

0 commit comments

Comments
 (0)