ci: PR parity jobs prepare vanilla data with main's script
A PR head older than the fix in vanilla-data.sh left a real .local/horizon-client without sounds.json on runner ludovics-mac-mini; every later job there failed subtitle. Like the harness selection, the job now runs main's script unless the branch changes it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -36,7 +36,19 @@ jobs:
|
|||||||
- name: Tools from the runner
|
- name: Tools from the runner
|
||||||
run: bash tools/ci/runner-env.sh
|
run: bash tools/ci/runner-env.sh
|
||||||
- name: Vanilla data, and resources prepared by this preparer
|
- name: Vanilla data, and resources prepared by this preparer
|
||||||
run: bash tools/ci/vanilla-data.sh
|
env:
|
||||||
|
BASE_SHA: ${{ inputs.base }}
|
||||||
|
run: |
|
||||||
|
# main's script: one written before a fix to it left a real .local/horizon-client without sounds.json on
|
||||||
|
# the runner, and every later job there failed `subtitle`. A branch that changes the script runs its own.
|
||||||
|
set -euo pipefail
|
||||||
|
if git rev-parse --verify -q origin/main >/dev/null \
|
||||||
|
&& git diff --quiet "$(git merge-base "$BASE_SHA" HEAD)" HEAD -- tools/ci/vanilla-data.sh; then
|
||||||
|
git show origin/main:tools/ci/vanilla-data.sh > "$RUNNER_TEMP/vanilla-data.sh"
|
||||||
|
bash "$RUNNER_TEMP/vanilla-data.sh"
|
||||||
|
else
|
||||||
|
bash tools/ci/vanilla-data.sh
|
||||||
|
fi
|
||||||
- name: The prepared output is the one the preparer's OUTPUT_VERSION says
|
- name: The prepared output is the one the preparer's OUTPUT_VERSION says
|
||||||
env:
|
env:
|
||||||
BASE_SHA: ${{ inputs.base }}
|
BASE_SHA: ${{ inputs.base }}
|
||||||
|
|||||||
Reference in New Issue
Block a user