Commit e249706
committed
Add
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 #1970.just recipes that trigger release.yml
1 parent 60c29a5 commit e249706
2 files changed
+34
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
295 | 295 | | |
296 | 296 | | |
297 | 297 | | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
0 commit comments