Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

oranization secret not work #568

Open
kongdd opened this issue May 7, 2024 · 1 comment
Open

oranization secret not work #568

kongdd opened this issue May 7, 2024 · 1 comment

Comments

@kongdd
Copy link

kongdd commented May 7, 2024

It seems that oranization secret not work.
Is this normal?

https://github.com/rpkgs/rcolors/actions/runs/8982522237/job/24670311240

Request failed [404]. Retrying in 1 seconds...
Request failed [404]. Retrying in 2.5 seconds...
$detail
[1] "Could not find a repository associated with upload token ***"
@schuemie
Copy link

If anyone also still has this problem, a possible workaround is to not use covr::codecov(), but instead split the GitHub Action in two:

  1. Compute coverage, saving it to XML
  2. Upload to Codecov using Codecov's own Action

Here's code from my Github Action:

      - name: Test coverage
        if: runner.os == 'Linux'
        run: |
          cov <- covr::package_coverage(
            quiet = FALSE,
            clean = FALSE,
            install_path = file.path(normalizePath(Sys.getenv("RUNNER_TEMP"), winslash = "/"), "package")
          )
          covr::to_cobertura(cov)
        shell: Rscript {0}

      - uses: codecov/codecov-action@v4
        if: runner.os == 'Linux'
        with:
          file: ./cobertura.xml
          plugin: noop
          disable_search: true
          token: ${{ secrets.CODECOV_TOKEN }}

Note that this requires xml2 to be installed.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants