From a11f57cc7db13836925bf3037efc74177b509553 Mon Sep 17 00:00:00 2001 From: signed-long <38993953+signed-long@users.noreply.github.com> Date: Mon, 15 Jul 2024 09:01:51 -0600 Subject: [PATCH] CI: fix ui report directory (#32991) fix report artifact name old-commit-hash: c759fe900276a6e622b51302fb9897e590edf3fd --- .github/workflows/selfdrive_tests.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/selfdrive_tests.yaml b/.github/workflows/selfdrive_tests.yaml index 419c472084..8968b493cf 100644 --- a/.github/workflows/selfdrive_tests.yaml +++ b/.github/workflows/selfdrive_tests.yaml @@ -335,8 +335,8 @@ jobs: - name: Upload Test Report uses: actions/upload-artifact@v4 with: - name: report-${{ inputs.run_number }} - path: selfdrive/ui/tests/test_ui/report_${{ inputs.run_number }} + name: report-${{ inputs.run_number || '1' }} + path: selfdrive/ui/tests/test_ui/report_${{ inputs.run_number || '1' }} - name: Get changes to selfdrive/ui if: ${{ github.event_name == 'pull_request' }} id: changed-files @@ -359,7 +359,7 @@ jobs: git checkout -b openpilot/pr-${{ github.event.pull_request.number }} git config user.name "GitHub Actions Bot" git config user.email "<>" - sudo mv ${{ github.workspace }}/selfdrive/ui/tests/test_ui/report/screenshots/* . + sudo mv ${{ github.workspace }}/selfdrive/ui/tests/test_ui/report_1/screenshots/* . git add . git commit -m "screenshots for PR #${{ github.event.pull_request.number }}" git push origin openpilot/pr-${{ github.event.pull_request.number }} --force