You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I got the following error when re-running a GH Actions workflow.
https://codecov.io/upload/v4?package=bash-20200303-bc4d7e6&token=secret&branch=tokenless_coverage_uploads&commit=46572a64ab028b892260fcb39096dcd766043e4a&build=52168147&build_url=http%3A%2F%2Fgithub.com%2Faiidateam%2Faiida-core%2Factions%2Fruns%2F52168147&name=aiida-pytests-py3.5-django&tag=&slug=aiidateam%2Faiida-core&service=github-actions&flags=django&pr=refs/heads/tokenless_coverage_uploads&job=
-> Uploading
X> Failed to upload
-> Sleeping for 30s and trying again...
-> Uploading to Codecov
HTTP 400
pr must match pattern ^(\d+|false|null|undefined|true)$
It seems it doesn't catch the PR's number, but instead the reference head.
I'm still getting this issue, but slightly different. The PR number scraping is quite fragile, it seems. Pushing more commits to an already created PR results in the upload call to coverage.io to include an empty key-value-pair for the pr key, i.e., ...&pr=&.... Never mind, was explicitly using the older version (v1.0.5). I have now switched to v1 (i.e., the latest v1.x.y) and it seems to works beautifully. Thanks for the fix 👍
I got the following error when re-running a GH Actions workflow.
It seems it doesn't catch the PR's number, but instead the reference head.
Using v1 with the following setup in my workflow:
Looking through the issues and PRs here, it seems related to the usage of
actions/checkout@v2
(based on the discussion #53 and #52).From your most recent README, it's clear
actions/checkout@master
is recommended, but the fact thatv2
does not work is not clear.In addition, the CI job did not fail, even though the error above was thrown (and
fail_ci_if_error: true
was set).The text was updated successfully, but these errors were encountered: