From 56009543935387929d5a5788b5ed219274ef7334 Mon Sep 17 00:00:00 2001 From: Richard van der Hoff Date: Tue, 15 Nov 2022 14:59:41 +0000 Subject: [PATCH] Unpack spec into right place for htmltest Hopefully, fixes https://github.com/matrix-org/matrix-spec/issues/1336 --- .github/workflows/main.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index ce54f976..c3d84f49 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -145,7 +145,7 @@ jobs: htmlcheck: name: "🔎 Validate generated HTML" runs-on: ubuntu-latest - needs: [build-spec] + needs: [calculate-baseurl, build-spec] steps: - name: "📥 Source checkout" uses: actions/checkout@v2 @@ -156,8 +156,14 @@ jobs: name: spec-artifact - name: "📝 Unpack the spec" + # we have to unpack it into the right path given the baseurl, so that the + # links are correct. + # eg if baseurl is `/unstable`, we want to put the site in `spec/unstable`. run: | - tar -xvzf spec.tar.gz + mkdir -p "spec${baseURL}" + tar -C "spec${baseURL}" --strip-components=1 -xvzf spec.tar.gz + env: + baseURL: "${{ needs.calculate-baseurl.outputs.baseURL }}" - name: "Run htmltest" uses: wjdp/htmltest-action@master