8000 github actions date not getting parsed by go-github · Issue #1254 · google/go-github · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
github actions date not getting parsed by go-github #1254
Closed
@geekodour

Description

@geekodour

github actions log:

19:45:30 main.go:110: parsing time ""8/18/2019 7:44:51 PM"" as ""2006-01-02T15:04:05Z07:00"": cannot parse "/2019 7:44:51 PM"" as "2006"
##[error]Docker run failed with exit code 1

this is on line 110, github.ParseWebHook , it's working with any other payload if I just use it from a regular curl command. but it's failing when used with GithubActions.

data, err := ioutil.ReadFile(cmClient.inputFilePath)
if err != nil {
	log.Fatalln(err)
}
// Parsing event.json.
event, err := github.ParseWebHook("issue_comment", data)
if err != nil {
	log.Fatalln(err)
}

data == issue_comment payload

not sure if this is a github action issue or go-github issue. how can i help to resolve this?

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

      0