From 4b66cd05776854c5c4105c0cdd6d7c5c3c448100 Mon Sep 17 00:00:00 2001 From: DevTekVE Date: Sun, 17 Nov 2024 04:27:29 +0100 Subject: [PATCH] ci: fix repo permissions in ui preview (#450) * more fix * forcing a change on UI to test * undo ui change for test * temp add branch * adding more ways to set the master uo * more bruteforce * undoing force --- .github/workflows/ui_preview.yaml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/ui_preview.yaml b/.github/workflows/ui_preview.yaml index 27c290cf2d..ed1a9d2a7c 100644 --- a/.github/workflows/ui_preview.yaml +++ b/.github/workflows/ui_preview.yaml @@ -60,13 +60,13 @@ jobs: - name: Getting master ui uses: actions/checkout@v4 with: - repository: commaai/ci-artifacts + repository: sunnypilot/ci-artifacts ssh-key: ${{ secrets.CI_ARTIFACTS_DEPLOY_KEY }} path: ${{ github.workspace }}/master_ui ref: openpilot_master_ui - name: Saving new master ui - if: github.ref == 'refs/heads/master' && github.event_name == 'push' + if: (github.ref == 'refs/heads/master' || github.ref == 'refs/heads/master-new') && github.event_name == 'push' working-directory: ${{ github.workspace }}/master_ui run: | git checkout --orphan=new_master_ui @@ -108,13 +108,13 @@ jobs: DIFF="${DIFF}" DIFF="${DIFF}" - DIFF="${DIFF} " - DIFF="${DIFF} " + DIFF="${DIFF} " + DIFF="${DIFF} " DIFF="${DIFF}" DIFF="${DIFF}" - DIFF="${DIFF} " - DIFF="${DIFF} " + DIFF="${DIFF} " + DIFF="${DIFF} " DIFF="${DIFF}" DIFF="${DIFF}
master proposed master proposed
diff composite diff diff composite diff
" @@ -127,7 +127,7 @@ jobs: if [[ $INDEX -eq 0 ]]; then TABLE="${TABLE}" fi - TABLE="${TABLE} " + TABLE="${TABLE} " if [[ $INDEX -eq 1 || $(($i + 1)) -eq ${#A[*]} ]]; then TABLE="${TABLE}" fi