From 488eb171e5755f3fdae6e7c675bd999993e7feed Mon Sep 17 00:00:00 2001 From: hav-johwal <166103136+hav-johwal@users.noreply.github.com> Date: Wed, 22 Jan 2025 15:57:32 +0100 Subject: [PATCH 1/2] ci: temp add debug info --- .github/workflows/build-documentation.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/build-documentation.yml b/.github/workflows/build-documentation.yml index 562106d..6fdac33 100644 --- a/.github/workflows/build-documentation.yml +++ b/.github/workflows/build-documentation.yml @@ -32,6 +32,12 @@ jobs: - name: Checkout main branch uses: actions/checkout@v4 + - name: Print info + run: | + id + ls -la + env + - name: Set version and documentation aliases id: set-doc-aliases if: github.event_name != 'workflow_dispatch' From 627c581949ff47316ec89dc056bab93275814849 Mon Sep 17 00:00:00 2001 From: hav-johwal <166103136+hav-johwal@users.noreply.github.com> Date: Wed, 22 Jan 2025 16:03:41 +0100 Subject: [PATCH 2/2] ci: changes back file permissions mike deploy creates a commit in the gh-pages branch as the root user after which there are entries under the .git folder that belongs to the root user (only user in the container). Git push then breaks when enacted from the host VM since it's not running as root. --- .github/workflows/build-documentation.yml | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/.github/workflows/build-documentation.yml b/.github/workflows/build-documentation.yml index 6fdac33..8e9dd9e 100644 --- a/.github/workflows/build-documentation.yml +++ b/.github/workflows/build-documentation.yml @@ -32,12 +32,6 @@ jobs: - name: Checkout main branch uses: actions/checkout@v4 - - name: Print info - run: | - id - ls -la - env - - name: Set version and documentation aliases id: set-doc-aliases if: github.event_name != 'workflow_dispatch' @@ -90,6 +84,7 @@ jobs: options: -v ${{ github.workspace }}:/docs -w /docs run: | mike deploy -u ${{ env.UVMS_VERSION_AND_ALIASES }} + chown -R 1001:118 .git - name: Tag release id: tag-release