diff --git a/.github/workflows/seo-report.yaml b/.github/workflows/seo-report.yaml index 7b4cc4b..6f17cbe 100644 --- a/.github/workflows/seo-report.yaml +++ b/.github/workflows/seo-report.yaml @@ -17,7 +17,7 @@ jobs: if: github.event.deployment_status.state == 'success' environment: name: github-pages - url: https://${{ github.repository_owner }}.github.io/${{ github.head_ref }}/ + url: https://${{ github.repository_owner }}.github.io/${{ github.event.repository.name }}/${{ steps.git-branch.outputs.SOURCE_REF }} runs-on: ubuntu-latest steps: - name: Check out @@ -47,12 +47,12 @@ jobs: unlighthouse-ci \ --site "${{ github.event.deployment_status.target_url }}" \ --build-static \ - --router-prefix "${{ github.event.repository.name }}/${{ github.head_ref }}" + --router-prefix "${{ github.event.repository.name }}/${{ steps.git-branch.outputs.SOURCE_REF }}" - name: Deploy uses: peaceiris/actions-gh-pages@v3 with: github_token: ${{ secrets.GH_PAGES_TOKEN }} publish_dir: ./.unlighthouse - destination_dir: ${{ github.head_ref }} + destination_dir: ${{ steps.git-branch.outputs.SOURCE_REF }}