fix: rename RUNNER_NAME to MATRIX_RUNNER in disk cleanup workflow (#49120)

RUNNER_NAME is a reserved environment variable in GitHub Actions.
Renamed to MATRIX_RUNNER to avoid conflicts.

Co-authored-by: Claude <noreply@anthropic.com>
This commit is contained in:
Samuel Attard
2025-12-01 13:33:45 -08:00
committed by GitHub
parent 6b50b5e816
commit ba5f7d272f

View File

@@ -59,7 +59,7 @@ jobs:
DD_API_KEY: ${{ secrets.DD_API_KEY }}
FREE_BEFORE: ${{ steps.disk-before.outputs.free_kb }}
FREE_AFTER: ${{ steps.disk-after.outputs.free_kb }}
RUNNER_NAME: ${{ matrix.runner }}
MATRIX_RUNNER: ${{ matrix.runner }}
run: |
TIMESTAMP=$(date +%s)
FREE_BEFORE_GB=$(echo "scale=2; $FREE_BEFORE / 1024 / 1024" | bc)
@@ -81,21 +81,21 @@ jobs:
"points": [{"timestamp": ${TIMESTAMP}, "value": ${FREE_BEFORE_GB}}],
"type": 3,
"unit": "gigabyte",
"tags": ["runner:${RUNNER_NAME}", "platform:macos"]
"tags": ["runner:${MATRIX_RUNNER}", "platform:macos"]
},
{
"metric": "electron.macos.disk.free_space_after_cleanup_gb",
"points": [{"timestamp": ${TIMESTAMP}, "value": ${FREE_AFTER_GB}}],
"type": 3,
"unit": "gigabyte",
"tags": ["runner:${RUNNER_NAME}", "platform:macos"]
"tags": ["runner:${MATRIX_RUNNER}", "platform:macos"]
},
{
"metric": "electron.macos.disk.space_freed_gb",
"points": [{"timestamp": ${TIMESTAMP}, "value": ${SPACE_FREED_GB}}],
"type": 3,
"unit": "gigabyte",
"tags": ["runner:${RUNNER_NAME}", "platform:macos"]
"tags": ["runner:${MATRIX_RUNNER}", "platform:macos"]
}
]
}