Skip to content

Commit

Permalink
actions/pr-deployment: Fix deployment URL
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
teodutu authored and gabrielmocanu committed Oct 30, 2023
1 parent fe7728b commit c25c91f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/pr-deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}/

0 comments on commit c25c91f

Please sign in to comment.