slack-github-action icon indicating copy to clipboard operation
slack-github-action copied to clipboard

There is a problem with the JSON payload path reference.

Open meju7015 opened this issue 3 years ago • 2 comments

Description

Describe your issue here.

What type of issue is this? (place an x in one of the [ ])

  • [x] bug
  • [ ] enhancement (feature request)
  • [ ] question
  • [ ] documentation related
  • [ ] example code related
  • [ ] testing related
  • [ ] discussion

Requirements (place an x in each of the [ ])

  • [x] I've read and understood the Contributing guidelines and have done my best effort to follow them.
  • [x] I've read and agree to the Code of Conduct.
  • [x] I've searched for any related issues and avoided creating a duplicate issue.

Bug Report

Filling out the following details about bugs will help us solve your issue sooner.

Reproducible in:

package version: 1.19.0

node version:

OS version(s): ubuntu: 20.04

Steps to reproduce:

Expected result:

JSON payload loads normally

Actual result:

image

image

Attachments:

Logs, screenshots, screencast, sample project, funny gif, etc.

meju7015 avatar Jun 24 '22 01:06 meju7015

@meju7015 - Hm, seems like a relative path is accepted per the documentation.

All that is happening here is that it's trying to read the file system and failing to load the path. Are you able to load files from outside the .github directory?

srajiang avatar Jun 24 '22 19:06 srajiang

Try to checkout the repository at the beginning of Action

- name: Checkout
  uses: actions/checkout@v2

luafanti avatar Jul 05 '22 09:07 luafanti

I had a similar problem, the issue was calling payload-file-path before I did a checkout of the repo like @luafanti said. Swapping the order of the operations fixed my issue

jr-surfline avatar Dec 08 '22 16:12 jr-surfline