Skip to content

Commit

Permalink
Update deploy-pages.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
DanTheMan827 authored Jul 20, 2024
1 parent 99cc3bd commit 62e2b99
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/deploy-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
HOMEPAGE_URL="$(curl -H "Authorization: token $GITHUB_TOKEN" "https://api.github.com/repos/$GITHUB_REPOSITORY" | jq -r '.homepage' | sed 's/\/$//')"
HOMEPAGE_URL="$(curl -H "Authorization: Bearer $GITHUB_TOKEN" "https://api.github.com/repos/$GITHUB_REPOSITORY/pages" | jq -r '.html_url' | sed 's/\/$//')"
if [ "$HOMEPAGE_URL" == "null" ]; then
echo "PAGES_URL=https://$REPO_USERNAME.github.io/$REPO_NAME" >> $GITHUB_ENV
else
Expand Down

0 comments on commit 62e2b99

Please sign in to comment.