generated from actions/javascript-action
-
Notifications
You must be signed in to change notification settings - Fork 13
Open
Labels
bugSomething isn't workingSomething isn't working
Description
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
Labels
bugSomething isn't workingSomething isn't working