Skip to content

Option to fully skip the onboarding? #1

@eXpl0it3r

Description

@eXpl0it3r

I tried to use FontGet in a GitHub Action step, since it seemed easy enough to install, but since the onboarding tries to open an interactive shell, it's impossible to use FontGet.

Is there a way to skip the onboarding completely?

Install fontget

  if ($env:RUNNER_OS -eq 'Windows') {
    winget install --id "fontget.fontget" --accept-package-agreements --accept-source-agreements
  } elseif ($env:RUNNER_OS -eq 'macOS') {
    brew tap Graphixa/homebrew-tap
    brew install fontget
  }

Install font

  if ($env:RUNNER_OS -eq 'Windows') {
    fontget add DejaVuSans
  } elseif ($env:RUNNER_OS -eq 'macOS') {
    fontget add DejaVuSans
  } elseif ($env:RUNNER_OS -eq 'Linux') {
    sudo apt-get update
    sudo apt-get install -y fonts-dejavu
  }

macOS failure

Error: onboarding failed: could not open a new TTY: open /dev/tty: device not configured
Error: onboarding failed: could not open a new TTY: open /dev/tty: device not configured

Windows failure

Line |
   4 |    fontget add DejaVuSans
     |    ~~~~~~~
     | The term 'fontget' is not recognized as a name of a cmdlet, function, script file, or executable program. Check
     | the spelling of the name, or if a path was included, verify that the path is correct and try again.

The install via winget works on Windows, but I couldn't call the command, as it was not found in PATH.

Workaround

Not relying on fontget I used the following step in my GitHub Actions workflow:

    - name: Install DejaVu Sans Font
      run: |
        if ("${{ runner.os }}" -eq "Windows") {
          choco install dejavufonts -y
        } elseif ("${{ runner.os }}" -eq "macOS") {
          brew install font-dejavu
        } elseif ("${{ runner.os }}" -eq "Linux") {
          sudo apt-get install -y fonts-dejavu
        }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions