Skip to content

Github Action config uses the old ubuntu-18.04 #592

@aleksanderbl29

Description

@aleksanderbl29

Before filing a bug

  • I have installed the latest dev version of {precommit} with remotes::install_github('lorenzwalthert/precommit')
  • I have installed the latest hook revisions (update with precommit::autoupdate())
  • I have installed the latest release of the upstream Python framework pre-comit as described under the update instructions.

Describe the bug
When running precommit::use_precommit(ci = "gha") the Github Actions config that is added to the repo is configured to the old 18.04 image of Ubuntu. In my view it should be either ubuntu-latest or ubuntu-22.04.

To Reproduce
Steps to reproduce the behavior:

  1. Run precommit::use_precommit(ci = "gha").
  2. Commit to github repo with Actions enabled.
  3. ERROR: The action stays in a queued state because of the os-image.

Expected behavior
I expect the Github Actions to start by itself when running the steps above.

Additional context
I have tested in my own repo that it works when using ubuntu-latest and ubuntu-22.04.

  • My operating system is: MacOS Sonoma 14.6.1
  • My project uses {renv}.
  • the output of packageVersion('renv')
packageVersion("renv")
#> [1] '1.0.7'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions