Skip to content

Adapt quarto-actions/setup for use in GitHub Enterprise? #40

@ijlyttle

Description

@ijlyttle

I'm starting to experiment with quarto (and r-lib) actions in GitHub Enterprise (GHE). Things are mostly working, with a few snags here-and-there.

I have encountered a snag in the setup action:

# download the latest stable release
gh release download --repo quarto-dev/quarto-cli --pattern ${{ format('*{0}', env.BUNDLE_EXT) }}

As I understand, gh assumes you are working with GitHub and that you have a valid GitHub token.

I can get around the first problem by adding the host:

gh release download --repo github.com/quarto-dev/quarto-cli --pattern ${{ format('*{0}', env.BUNDLE_EXT) }}

But the second problem remains: on GHE, GITHUB_TOKEN works on GHE - not GitHub proper.

I can work around this problem by specifying a version in my action workflow, e.g.:

      - name: Set up Quarto
        uses: <local-fork>/quarto-actions/setup@v2
        with:
          version: 1.0.38

Could there be a way to make the "stable release" method robust to use on GitHub Enterprise?

To be clear, this is not an urgent issue. The wheels of progress can turn slowly at big companies; we are a long way from rolling anything out internally.

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions