diff --git a/.github/workflows/selfdrive_tests.yaml b/.github/workflows/selfdrive_tests.yaml index 77b41df95ac7b3..b4050e454b0aa1 100644 --- a/.github/workflows/selfdrive_tests.yaml +++ b/.github/workflows/selfdrive_tests.yaml @@ -238,6 +238,12 @@ jobs: runs-on: ubuntu-latest if: github.event_name == 'pull_request' steps: + - uses: actions/checkout@v4 + with: + submodules: true + ref: ${{ github.event.pull_request.base.ref }} + - run: git lfs pull + - uses: ./.github/workflows/setup-with-retry - uses: actions/checkout@v4 with: submodules: true @@ -248,8 +254,9 @@ jobs: run: | cd current ${{ env.RUN }} "scons -j$(nproc)" - wget -O /tmp/CARS.md.old https://raw.githubusercontent.com/commaai/openpilot/master/docs/CARS.md - output=$(${{ env.RUN }} "python selfdrive/debug/print_docs_diff.py --old /tmp/CARS.md.old") + wget -O /tmp/openpilot_cache/CARS.md.old https://raw.githubusercontent.com/commaai/openpilot/master/docs/CARS.md + sudo chown -R $USER:$USER ${{ github.workspace }} + output=$(${{ env.RUN }} "python selfdrive/debug/print_docs_diff.py --old /tmp/openpilot_cache/CARS.md.old") output="${output//$'\n'/'%0A'}" echo "::set-output name=diff::$output" - name: Find comment