We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bf4b721 commit 726eda5Copy full SHA for 726eda5
1 file changed
.github/workflows/deploy.yml
@@ -31,7 +31,9 @@ jobs:
31
- name: Set base path for project pages
32
shell: bash
33
run: |
34
- if [[ "${{ github.repository }}" == "${{ github.repository_owner }}.github.io" ]]; then
+ owner_lc="$(echo "${{ github.repository_owner }}" | tr '[:upper:]' '[:lower:]')"
35
+ repo_lc="$(echo "${{ github.event.repository.name }}" | tr '[:upper:]' '[:lower:]')"
36
+ if [[ "$repo_lc" == "${owner_lc}.github.io" ]]; then
37
echo "BASE_PATH=/" >> "$GITHUB_ENV"
38
else
39
echo "BASE_PATH=/${{ github.event.repository.name }}" >> "$GITHUB_ENV"
0 commit comments