diff --git a/.github/workflows/ios-nightly-percy.yml b/.github/workflows/ios-nightly-percy.yml index e7296b24a..75c24e6a9 100644 --- a/.github/workflows/ios-nightly-percy.yml +++ b/.github/workflows/ios-nightly-percy.yml @@ -137,7 +137,8 @@ jobs: REFRESH_UNSTABLE: ${{ inputs.refresh_unstable }} # Rebuilt on top of maps-docs main every time, so it never conflicts with the docs pushed - # to main by update-docs.yml. maps-docs opens the PR from it. + # to main by update-docs.yml. maps-docs opens the PR from it. Only examples-screenshots is + # compared with the existing branch, as main itself moves with almost every docs push. - name: Push the screenshots branch if: steps.download.outcome == 'success' working-directory: maps-docs @@ -159,7 +160,7 @@ jobs: } > "$RUNNER_TEMP/message.txt" git commit -q -F "$RUNNER_TEMP/message.txt" cat "$RUNNER_TEMP/message.txt" >> "$GITHUB_STEP_SUMMARY" - if git fetch -q origin "$BRANCH" && git diff --quiet FETCH_HEAD HEAD; then + if git fetch -q origin "$BRANCH" && git diff --quiet FETCH_HEAD HEAD -- examples-screenshots; then echo "$BRANCH is already up to date" exit 0 fi diff --git a/scripts/ci/update-doc-screenshots.js b/scripts/ci/update-doc-screenshots.js index 06766840f..433cf21fd 100644 --- a/scripts/ci/update-doc-screenshots.js +++ b/scripts/ci/update-doc-screenshots.js @@ -4,7 +4,7 @@ * examples-screenshots folder, drops screenshots of removed examples, keeps screenshots.json * in sync and writes a markdown summary of what changed (empty if nothing did). * - * excludeFromPercy examples differ by 2-80% between runs (animations, timers), so they are only + * excludeFromPercy examples differ by up to ~80% between runs (animations, timers), so they are only * replaced when new, when the screenshot size changed or with REFRESH_UNSTABLE=true. */