-
Notifications
You must be signed in to change notification settings - Fork 285
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The latest release of r-lib/actions "broke" use_github_action() #1967
Comments
@gaborcsardi would it work to simply add a "0" at the end of the "sysreqs" release name? 😅 numeric_version(sub("^[^0-9]*", "", "sysreqs0"))
#> [1] '0' Created on 2024-03-26 with reprex v2.1.0 |
In the meantime, a workaround is to manually add the ref to the use_github_action(ref = "v2") |
I'll delete the |
Thank you!! |
OK, deleted the tag, windows |
Reported by @SunnyTseng 🙏
Error we observe, with the backtrace hinting at
pick_tag()
being the problem:use_github_action()
finds the ref part of the URL to the workflow by picking the latest release of the r-lib/actions repository.usethis/R/github-actions.R
Line 90 in 9e64daf
In
latest_release()
, the release names are extracted via GitHub API:usethis/R/github-actions.R
Lines 260 to 270 in 9e64daf
Today these names are
c("v2", "sysreqs", "v1")
. (Yesterday there was a new release of the r-lib/actions repo called "sysreqs". https://github.com/r-lib/actions/releases)In
pick_tag()
, the line below transforms each of the names to a numeric versionusethis/R/github-actions.R
Line 278 in 9e64daf
With "sysreqs", it doesn't work:
Created on 2024-03-26 with reprex v2.1.0
The text was updated successfully, but these errors were encountered: