From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/28704 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Shakrmaker Newsgroups: gmane.text.pandoc Subject: Re: GitHub Actions - openBinaryFile: does not exist (No such file or directory) Date: Mon, 28 Jun 2021 14:28:52 -0700 (PDT) Message-ID: References: <06a85c25-bad6-4c22-a184-a3becb9f64dbn@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_6_1291232020.1624915732214" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="38413"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBCPITV4J2QFBBFP65CDAMGQENT3EEKA-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mon Jun 28 23:28:55 2021 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-ot1-f64.google.com ([209.85.210.64]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1lxyoJ-0009k7-F5 for gtp-pandoc-discuss@m.gmane-mx.org; Mon, 28 Jun 2021 23:28:55 +0200 Original-Received: by mail-ot1-f64.google.com with SMTP id m26-20020a0568301e7ab0290465faca518fsf4063474otr.18 for ; Mon, 28 Jun 2021 14:28:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:date:from:to:message-id:in-reply-to:references:subject :mime-version:x-original-sender:reply-to:precedence:mailing-list :list-id:list-post:list-help:list-archive:list-subscribe :list-unsubscribe; bh=viSWm0420fTtWy6KOqZQ8MJpLLBUwDfBaR/w7OLWwfk=; b=FkZjbue/gSovH7bH25YGb7ctEheX7PHWBaxjlAJhXXuWhDNlvaStFP2puwWU9dhgZM Qh3Kg99TidRtKPuvCHTSrQCtIkOnYHSSua02+0HjT+E6Yqcx5JVxRuqQDJz6CJ+hTWdL S9PFk+SgMd582B9/6Jr98hrRk9l+YBwEIeoSbCzmT65Xa01l0VuvfRmT4qPcKn0za4ua wmpr9dwFIhufbXbyxndBNKAyyWY0z1LH4Lezz2kd4Ypr5SKNKhVGxZ98VwmWgoV0YZQ1 KLbkW4WNxNNIToHqjEFoE8SJXTzyMxl1CY1BO7YSERuasVHj2U5tqq3xE70dVrIOt99A LkZQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:message-id:in-reply-to:references:subject:mime-version :x-original-sender:reply-to:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-subscribe:list-unsubscribe; bh=viSWm0420fTtWy6KOqZQ8MJpLLBUwDfBaR/w7OLWwfk=; b=ZCMnbs6Wcsvn6fqROCD0xXH/ufCUJ9qPC4cg3V+bGMIqm8GgL8gQYVgjo945TzfbKv M9Z9YbzwMrv2NhO8cr5kmviTdINZIVpC3+0pHPf7s7xiW48+n4M76t5SY8W+CRkipORG jsejcMMml/EQM2OmUO9THzNeWmK8d0SQhZztCeMc7HLE9A/RfWLOCA+m3QHp8+8wh7JE KAqjTDBBp/q0OKvHNcYfjVgKuuxKGajmaSq8OaBjdEk5I+ieupdp/VWgac9Anqf+zXM5 tgSAW+eJqPKQqgumauiPyFk/2Pb99W4Q6KgXDQJPpsLcFTRm3v+LsE+Fn9isExpIuf4J Mifg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:date:from:to:message-id:in-reply-to :references:subject:mime-version:x-original-sender:reply-to :precedence:mailing-list:list-id:x-spam-checked-in-group:list-post :list-help:list-archive:list-subscribe:list-unsubscribe; bh=viSWm0420fTtWy6KOqZQ8MJpLLBUwDfBaR/w7OLWwfk=; b=o+qUofLDgicCsCx+R8PNK/dwbSBcw+Ci1SchtsyskJes+IHg12eVaJF+ums9P+2nRH 22dVe9739871c/gupz+TSrbGFogHBOSVf/orw1m1Mlr8ttC7wcoQxwRPWDeCLPx4Shov s4rcu/i1xI2tOllnWvin4dWdvOjcACB6kDk24MEPDSJro30O48kIeXYqRQmNC8W4M/6U v0/Iv+XPzOzjxKIqgYzD0OGHkl9trYcIZrmA4+4z5VIQiYzecAyap2S9MV70jscy947u kiSxbvNJlPjCWNxKkbvjLiIz6ptrNEGj+9TTBxU4Ymgi8wy7RdwcQ9PVWyY0AS7kSKWe 4FEg== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOAM530daSJfTnOCHLq2OMALJw2nkuia/+wqvN9QUfjDvTk73nyFRmBq +aLjTiOYcaLEAfQOURlRZlU= X-Google-Smtp-Source: ABdhPJzD/XP4Eh7zc0DpG1PqzDdFmFbjoP3tPDi5XK7rJVe2spyNclcuYLgSMlPM6/0SdvNZygcraA== X-Received: by 2002:a4a:b402:: with SMTP id y2mr1160791oon.87.1624915734425; Mon, 28 Jun 2021 14:28:54 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a9d:6e08:: with SMTP id e8ls2890839otr.7.gmail; Mon, 28 Jun 2021 14:28:52 -0700 (PDT) X-Received: by 2002:a9d:2038:: with SMTP id n53mr1418412ota.140.1624915732803; Mon, 28 Jun 2021 14:28:52 -0700 (PDT) In-Reply-To: X-Original-Sender: tojonmz-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org Precedence: list Mailing-list: list pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org; contact pandoc-discuss+owners-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org List-ID: X-Google-Group-Id: 1007024079513 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , Xref: news.gmane.io gmane.text.pandoc:28704 Archived-At: ------=_Part_6_1291232020.1624915732214 Content-Type: multipart/alternative; boundary="----=_Part_7_734959448.1624915732214" ------=_Part_7_734959448.1624915732214 Content-Type: text/plain; charset="UTF-8" Thanks John. I'm still searching for where the -v arg is used which maps the volumes. So far, no luck searching in: https://github.com/pandoc/dockerfiles I see: https://github.com/pandoc/dockerfiles/blob/master/ubuntu/Dockerfile#L73 I've also tried to ls /data in an action run. I can, but that clearly is not where my repo is being delivered inside the container. Clearly, I don't understand where convert_via_pandoc is that the yaml calls, or where the arguments are. On Monday, June 28, 2021 at 1:29:55 PM UTC-4 John MacFarlane wrote: > > Take a look at the docker command. The -v option is being used > to map your directory to a different directory in the docker > image, so you'll have to use a different path. > > Shakrmaker writes: > > > Hi Everyone, > > > > Apologies, but I've searched all the threads here (StackOverflow, etc), > and > > while I've found lots of folks hitting it, I haven't found my solution. > I > > set up a GitHub Action in my repo on push, essentially using the > provided > > example on https://github.com/pandoc/pandoc-action-example. > > > > I can run and access my input files fine with a simple run ls, via an > > /absolute/path, via ${{ github.workspace }}/path, or via > > $GITHUB_WORKSPACE/path so I know they are there. > > > > But when I try to call pandoc with the yaml, I get the classic error: > > pandoc: *(my-valid/path*): openBinaryFile: does not exist (No such file > or > > directory) > > > > My yaml: > > > > on: push > > > > jobs: > > convert_via_pandoc: > > runs-on: ubuntu-18.04 > > steps: > > # Checks-out repository under $GITHUB_WORKSPACE, so job can access it > > - uses: actions/checkout@v2 > > - run: ls [valid/path].md > > - uses: docker://pandoc/core:2.11.2 > > with: > > args: >- # break args into multiple lines > > -s > > -M title="My Title" > > -o output.html > > -f markdown > > [valid/path].md > > > > Here's an example showing the path is valid, and the failure when I try > to > > access that path as the input file (same occurs using $GITHUB_WORKSPACE, > > etc). > > > > I am a newbie to both GitHub Actions and Pandoc, so it must be something > > obvious to the experts here. What am I doing wrong? > > > > Thanks in advance. > > > > -- > > You received this message because you are subscribed to the Google > Groups "pandoc-discuss" group. > > To unsubscribe from this group and stop receiving emails from it, send > an email to pandoc-discus...-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > > To view this discussion on the web visit > https://groups.google.com/d/msgid/pandoc-discuss/06a85c25-bad6-4c22-a184-a3becb9f64dbn%40googlegroups.com > . > -- You received this message because you are subscribed to the Google Groups "pandoc-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/b9b67058-9a97-471a-b6d6-0021ea504a36n%40googlegroups.com. ------=_Part_7_734959448.1624915732214 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Thanks John. I'm still searching for where the -v arg is used w= hich maps the volumes. So far, no luck searching in:
https://github.com/= pandoc/dockerfiles

I see:
https://github.com/pandoc/dockerfiles/b= lob/master/ubuntu/Dockerfile#L73

I've also tried to ls /data in an a= ction run. I can, but that clearly is not where my repo is being delivered = inside the container.

Clearly, I don't= understand where convert_via_pandoc is that the yaml calls, or where the a= rguments are.

On Monday, June 28, 2021 at 1:29:55 PM UTC-4 John MacFarl= ane wrote:

Take a look at the docker command. The -v option is being used
to map your directory to a different directory in the docker
image, so you'll have to use a different path.

Shakrmaker <toj...@gmail.= com> writes:

> Hi Everyone,
>
> Apologies, but I've searched all the threads here (StackOverfl= ow, etc), and=20
> while I've found lots of folks hitting it, I haven't found= my solution. I=20
> set up a GitHub Action in my repo on push, essentially using the p= rovided=20
> example on https://github.com/pandoc/pandoc-action-example.
>
> I can run and access my input files fine with a simple run ls, via= an=20
> /absolute/path, via ${{ github.workspace }}/path, or via=20
> $GITHUB_WORKSPACE/path so I know they are there.
>
> But when I try to call pandoc with the yaml, I get the classic err= or:
> pandoc: *(my-valid/path*): openBinaryFile: does not exist (No such= file or=20
> directory)
>
> My yaml:
>
> on: push
>
> jobs:
> convert_via_pandoc:
> runs-on: ubuntu-18.04
> steps:
> # Checks-out repository under $GITHUB_WORKSPACE, so job can = access it
> - uses: actions/checkout@v2
> - run: ls [valid/path].md
> - uses: docker://pandoc/core:2.11.2
> with:
> args: >- # break args into multiple lines
> -s
> -M title=3D"My Title"
> -o output.html
> -f markdown
> [valid/path].md
>
> Here's an example showing the path is valid, and the failure w= hen I try to=20
> access that path as the input file (same occurs using $GITHUB_WORK= SPACE,=20
> etc).
>
> I am a newbie to both GitHub Actions and Pandoc, so it must be som= ething=20
> obvious to the experts here. What am I doing wrong?
>
> Thanks in advance.
>
> --=20
> You received this message because you are subscribed to the Google= Groups "pandoc-discuss" group.
> To unsubscribe from this group and stop receiving emails from it, = send an email to pandoc-discus..= .@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/06a8= 5c25-bad6-4c22-a184-a3becb9f64dbn%40googlegroups.com.

--
You received this message because you are subscribed to the Google Groups &= quot;pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an e= mail to pand= oc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://groups.google.com/d= /msgid/pandoc-discuss/b9b67058-9a97-471a-b6d6-0021ea504a36n%40googlegroups.= com.
------=_Part_7_734959448.1624915732214-- ------=_Part_6_1291232020.1624915732214--