From d4c8289e4f603885163943c66e6b872ea7f6b7a9 Mon Sep 17 00:00:00 2001 From: Teodor Dutu Date: Mon, 30 Oct 2023 14:47:16 +0200 Subject: [PATCH] actions/pr-deployment: Fix deployment URL The URL was `http://open-education-hub.github.io/...`. This was incorrect for forked repos as it referred to the original owner: OEH. In addition, it was using the `http` scheme instead of `https`. This was less of an issue because the `http` endpoint redirects to `https`. This commit fixes both of the aforementioned problems by dynamically obtaining the owner uwing `${{ github.repository_owner }}` and by using `https` instead of `http`. Signed-off-by: Teodor Dutu --- .github/workflows/pr-deployment.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pr-deployment.yml b/.github/workflows/pr-deployment.yml index 93f046c406..1699179349 100644 --- a/.github/workflows/pr-deployment.yml +++ b/.github/workflows/pr-deployment.yml @@ -64,4 +64,4 @@ jobs: uses: thollander/actions-comment-pull-request@v2 with: message: | - Published at http://open-education-hub.github.io/operating-systems/${{ github.event.number }}/ + Published at https://${{ github.repository_owner }}.github.io/operating-systems/${{ github.event.number }}/