8000 BUG: wrong artifacts_url parsing on recent circleci account · Issue #65 · scientific-python/circleci-artifacts-redirector-action · GitHub 8000
[go: up one dir, main page]

Skip to content
BUG: wrong artifacts_url parsing on recent circleci account #65
@matthieutrs

Description

@matthieutrs

Hello,

Thanks for this super convenient action!

I noticed the artifacts_url parsing was not correct on my recently created circleci account. I've opened a PR on this #66 but it was wrongly formated, will reopen soon.

Thanks,

Matthieu

Details

I struggled a bit installing it due to some error that I incorrectly attributed to a token authentification issue.

The error I ran into was

Run larsoner/circleci-artifacts-redirector-action@master
  with:
    api-token: ***
    repo-token: ***
    artifact-path: 0/dev/index.html
    circleci-jobs: build_docs
Error: Cannot read properties of undefined (reading 'length')

which I wrongly attributed to an token authentification issue.

Enabling debugging showed:

##[debug]target_url: https://app.circleci.com/pipelines/circleci/R9tPFRgeYxHGbREDgVHMf7/fd64T1oD7p2iMwjvBGZvz/42/workflows/4866dca5-f8a7-4295-ab7c-4ca143430549
##[debug]org:   42
##[debug]repo:  workflows
##[debug]build: 4866dca5-f8a7-4295-ab7c-4ca143430549
##[debug]Fetching JSON: https://circleci.com/api/v2/project/gh/42/workflows/4866dca5-f8a7-4295-ab7c-4ca143430549/artifacts
##[debug]Successfully read CircleCI API token ***
##[debug]Artifacts JSON (status=404):
##[debug]{"message":"Project not found"}
Error: Cannot read properties of undefined (reading 'length')
##[debug]Node Action run completed with exit code 1
##[debug]Finishing: GitHub Action step

thus pointing to a wrong parsing of target_url.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0