Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I get this error when I use version 0.6.0 but works fine with 0.4.0 #27

Closed
bogdandrutu opened this issue Apr 2, 2020 · 4 comments
Closed

Comments

@bogdandrutu
Copy link

[Check Markdown Files/markdown-lint] ☁ git clone 'https://github.com/gaurav-nelson/github-action-markdown-link-check' # ref=0.6.0
ERRO[0002] Unable to interpolate string '${{ inputs.use-quiet-mode }}' - [ReferenceError: 'quiet' is not defined]
ERRO[0002] Unable to interpolate string '${{ inputs.use-verbose-mode }}' - [ReferenceError: 'verbose' is not defined]
ERRO[0002] Unable to interpolate string '${{ inputs.config-file }}' - [ReferenceError: 'file' is not defined]
ERRO[0002] Unable to interpolate string '${{ inputs.folder-path }}' - [ReferenceError: 'path' is not defined]
[Check Markdown Files/markdown-lint] 🐳 docker build -t act-gaurav-nelson-github-action-markdown-link-check-0-6-0:latest /Users/lazy/.cache/act/gaurav-nelson-github-action-markdown-link-check@0.6.0
[Check Markdown Files/markdown-lint] 🐳 docker run image=act-gaurav-nelson-github-action-markdown-link-check-0-6-0:latest entrypoint=[] cmd=["" "" "" ""]
npm WARN deprecated request@2.88.2: request has been deprecated, see request/request#3142
/usr/local/bin/markdown-link-check -> /usr/local/lib/node_modules/markdown-link-check/markdown-link-check
| + markdown-link-check@3.8.0
| added 66 packages from 71 contributors in 2.418s
| USE_QUIET_MODE:
| USE_VERBOSE_MODE:
| FOLDER_PATH:
| Cannot find

I am using "act" to test the changes locally. See open-telemetry/opentelemetry-specification#541

@gaurav-nelson
Copy link
Owner

Thank you @bogdandrutu
I still have to figure out proper release versioning #20

The issues you see in 0.6.0 are bugs which are resolved in master. I recommend you to use the following for now:

uses: gaurav-nelson/github-action-markdown-link-check@master

till I figure out proper release versioning thingy.

@bogdandrutu
Copy link
Author

Here is my action:

name: Check Markdown Files

on:
  push:
    branches: [ master ]
  pull_request:
    branches: [ master ]

jobs:
  markdown-lint:
    runs-on: ubuntu-latest
    steps:
      # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
      - uses: actions/checkout@v2

      - name: markdownlint-cli
        uses: nosborn/github-action-markdown-cli@v1.1.1
        with:
          files: .
          config_file: ".markdownlint.yaml"
    
      - name: markdown-link-check
        uses: gaurav-nelson/github-action-markdown-link-check@master

I see the same error:

➜  opentelemetry-specification git:(enablelinkcheck) ✗ act
[Check Markdown Files/markdown-lint] 🚀  Start image=node:12.6-buster-slim
[Check Markdown Files/markdown-lint]   🐳  docker run image=node:12.6-buster-slim entrypoint=["/usr/bin/tail" "-f" "/dev/null"] cmd=[]
[Check Markdown Files/markdown-lint]   🐳  docker cp src=/Users/lazy/github/opentelemetry-specification/. dst=/github/workspace
[Check Markdown Files/markdown-lint] ⭐  Run actions/checkout@v2
[Check Markdown Files/markdown-lint]   ✅  Success - actions/checkout@v2
[Check Markdown Files/markdown-lint] ⭐  Run markdownlint-cli
[Check Markdown Files/markdown-lint]   ☁  git clone 'https://github.com/nosborn/github-action-markdown-cli' # ref=v1.1.1
[Check Markdown Files/markdown-lint]   🐳  docker build -t act-nosborn-github-action-markdown-cli-v1-1-1:latest /Users/lazy/.cache/act/nosborn-github-action-markdown-cli@v1.1.1
[Check Markdown Files/markdown-lint]   🐳  docker run image=act-nosborn-github-action-markdown-cli-v1-1-1:latest entrypoint=[] cmd=[]
| 
[Check Markdown Files/markdown-lint]   ✅  Success - markdownlint-cli
[Check Markdown Files/markdown-lint] ⭐  Run markdown-link-check
[Check Markdown Files/markdown-lint]   ☁  git clone 'https://github.com/gaurav-nelson/github-action-markdown-link-check' # ref=master
ERRO[0002] Unable to interpolate string '${{ inputs.use-quiet-mode }}' - [ReferenceError: 'quiet' is not defined] 
ERRO[0002] Unable to interpolate string '${{ inputs.use-verbose-mode }}' - [ReferenceError: 'verbose' is not defined] 
ERRO[0002] Unable to interpolate string '${{ inputs.config-file }}' - [ReferenceError: 'file' is not defined] 
ERRO[0002] Unable to interpolate string '${{ inputs.folder-path }}' - [ReferenceError: 'path' is not defined] 
[Check Markdown Files/markdown-lint]   🐳  docker build -t act-gaurav-nelson-github-action-markdown-link-check-master:latest /Users/lazy/.cache/act/gaurav-nelson-github-action-markdown-link-check@master
[Check Markdown Files/markdown-lint]   🐳  docker run image=act-gaurav-nelson-github-action-markdown-link-check-master:latest entrypoint=[] cmd=["" "" "" ""]
npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
/usr/local/bin/markdown-link-check -> /usr/local/lib/node_modules/markdown-link-check/markdown-link-check
+ markdown-link-check@3.8.0
| added 66 packages from 71 contributors in 2.452s
| USE_QUIET_MODE: 
| USE_VERBOSE_MODE: 
| FOLDER_PATH: 
| Cannot find 
| NOTE: See https://github.com/tcort/markdown-link-check#config-file-format to know more about
| customizing markdown-link-check by using a configuration file.
| + find '' -name '*.md' -not -path './node_modules/*' -exec markdown-link-check '{}' ';'
[Check Markdown Files/markdown-lint]   ❌  Failure - markdown-link-check
Error: exit with `FAILURE`: 1

You can see that it pulls master:
[Check Markdown Files/markdown-lint] ☁ git clone 'https://github.com/gaurav-nelson/github-action-markdown-link-check' # ref=master

@gaurav-nelson
Copy link
Owner

@bogdandrutu The issue is becuase you're trying to run locally using act.
PS: nektos/act#181 and nektos/act#104

Can you try running this in a pull request in your repository?

@gaurav-nelson
Copy link
Owner

gaurav-nelson commented Apr 2, 2020

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants