From cff75570b1aad9fb75cafe05d77efd0eb2884c2d Mon Sep 17 00:00:00 2001 From: Alejandro Villar Date: Fri, 2 Feb 2024 10:25:51 +0100 Subject: [PATCH] Fix permissions after docker image step --- .github/workflows/validate-and-process.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/validate-and-process.yml b/.github/workflows/validate-and-process.yml index 31b3930..4617205 100644 --- a/.github/workflows/validate-and-process.yml +++ b/.github/workflows/validate-and-process.yml @@ -117,8 +117,9 @@ jobs: viewer_path: ${{ inputs.viewer_path }} sparql_username: ${{ secrets.sparql_username }} sparql_password: ${{ secrets.sparql_password }} - - name: Compress large _visited_properties.tsv and git pull + - name: Fix permissions, compress large _visited_properties.tsv, git pull run: | + sudo chown -R $UID:$(id -g) . sudo find "${{ inputs.annotated_path }}" -size +10M -name _visited_properties.tsv \ -exec gzip \{\} \; git pull @@ -192,7 +193,7 @@ jobs: fi cd "$OLD_WD" - if [ ! -z "404.html" ]; then + if [ ! -f "404.html" ]; then cp "${{ inputs.viewer_path }}/404.html" . fi - name: Setup Pages