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
This adds three recipes to the `justfile`. Two of these recipes
trigger the release workflow.
1. `unique-v-tag`, which delegates to a script, looks at tags that
point to `HEAD`, reports an error if none, or more than one, of
them are named starting with `v`, and otherwise outputs the name
of the unique `v*` tag that it found.
2. `run-release-workflow` triggers the `release.yml` workflow for a
tag obtained via `unique-v-tag`. By default, it runs it on the
`GitoxideLabs/gitoxide` repository. This can be adjusted by
setting the `GH_REPO` environment variable, as usual for `gh`.
It can also be adjusted by passing an optional argument to the
recipe (which takes precedence over `GH_REPO` if set).
3. `roll-release` runs `cargo smart-release`, forwarding its
arguments to it, and then runs the `release.yml` workflow via
`run-release-workflow`. Because all arguments to `roll-release`
are passed to `cargo smart-release`, the repository to run
`release.yml` on cannot be specified as an argument to
`roll-release`, but `GH_REPO` can still be used to customize it.
(Also, since `roll-release` is meant to be used when actually
creating releases and publishing them, it's not expected to run
on forks nearly as often as the upstream.)
See GitoxideLabs#1970.
0 commit comments