-
Notifications
You must be signed in to change notification settings - Fork 286
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
Versioning GH actions #1541
Comments
How do you envision usethis discovering the default ref from This will be a fairly easy adjustment, since all the workflow-downloading functions now route through |
usethis could pick up the latest release / tag from the |
Yeah I meant ... latest in terms of the date modified? Or latest in an alpha/numerical sense? I mean, there's only one now, but ... library(tidyverse)
(out <- gh::gh("/repos/r-lib/actions/tags"))
#> [
#> {
#> "name": "v1",
#> "zipball_url": "https://api.github.com/repos/r-lib/actions/zipball/refs/tags/v1",
#> "tarball_url": "https://api.github.com/repos/r-lib/actions/tarball/refs/tags/v1",
#> "commit": {
#> "sha": "f349d3ebc6fc46a3731c7c6c968105fde299bcb3",
#> "url": "https://api.github.com/repos/r-lib/actions/commits/f349d3ebc6fc46a3731c7c6c968105fde299bcb3"
#> },
#> "node_id": "MDM6UmVmMjE0MjE1NTI0OnJlZnMvdGFncy92MQ=="
#> }
#> ]
map_chr(out, "name")
#> [1] "v1" Created on 2021-12-06 by the reprex package (v2.0.1.9000) |
Sorry, yes, we would order the numbers. I don't think we would have real semantic version numbers, so just removing the |
OK, sounds good. |
I'm beginning to question defaulting to the latest tag in Because, for example, right now that might deliver the not-yet-quite-official @gaborcsardi Do you think there should be some other mechanism (tag, probably, e.g. |
Aren't pre-releases marked in the API? |
So we can choose the latest release that is not a pre-release. |
Also, do you think the |
I thought we were going to consult a generic tag. But OK yes if we're talking about releases, I see how it will work. |
Yeah, it would be nice to include the source, sure. If you want a proper reference, that would be the sha, because the tag will change. But maybe the tag is enough. |
Just FYI I think part of my confusion with how this is going to work in practice stems from the fact that, I think, the Re: including the source, I suppose it might make sense to record the ref and, assuming it's not already a SHA, also the SHA. |
It seems like usethis always uses the
v1
tag of the actions repo, which was fine until now, but I am about to update thesetup-r-dependencies
action and the related example workflows that use it in a way that might not be backwards compatible.So I would create a new branch for this (or just use
main
?). For a short time this branch would live as the "devel" workflow, and then we will make it the default, and thenr-lib/actions
will receive av2
tag.So it seems like it would make sense to support multiple tags/branches in usethis as well. usethis could pick up the latest release / tag from the
r-lib/actions
repo, this could be the default.The text was updated successfully, but these errors were encountered: