pandoc-action-example icon indicating copy to clipboard operation
pandoc-action-example copied to clipboard

How to run pandoc using a Windows runner?

Open slavistan opened this issue 2 years ago • 1 comments

Hi. I'm forced to use a Windows runner for a pipeline and the instructions in this repository do not work. Here's a MWE:

This pipeline fails, producing the error message Value cannot be null. (Parameter 'container').

jobs:
  build:
    runs-on: windows-latest
    steps:
      - uses: docker://pandoc/core
        with:
          args: "--help"

Changing to the ubuntu-latest runner fixes the problem. Any idea on why this is the case?

slavistan avatar Jan 20 '23 12:01 slavistan

Turn out, installing via chocolatey does the job.

jobs:
  build:
    runs-on: windows-latest
    steps:
      - run: |
          choco install --yes pandoc
          pandoc --help

That'd be something to put into the README.

slavistan avatar Jan 20 '23 12:01 slavistan