diff --git a/.github/workflows/docs.yaml b/.github/workflows/docs.yaml index 7132fd3..116378f 100644 --- a/.github/workflows/docs.yaml +++ b/.github/workflows/docs.yaml @@ -34,9 +34,13 @@ jobs: - name: Generate documentation env: REPO_NAME: ${{ github.event.repository.name }} + # Override with a repo variable (Settings > Secrets and variables > + # Actions > Variables > PROJECT_NAME) when the displayed project + # name should differ from the repo slug, e.g. made -> "M&DE". + PROJECT_NAME: ${{ vars.PROJECT_NAME || github.event.repository.name }} run: | scala-cli --power doc . -- \ - -project "$REPO_NAME" \ + -project "$PROJECT_NAME" \ -project-version ${{ github.ref_name }} \ -project-footer "made with ❤️ and coffee" \ -social-links:github::https://github.com/halotukozak/$REPO_NAME \