axodotdev / axodotdev/cargo-dist
running command `cargo dist generate` in a branch different than `main` not updating github workflow
- Dominant language
- Rust
- Stars
- 2.1k
- Forks
- 149
- Avg merge
- 1d 11h
- Merged PRs (30d)
- 32
Description
Dear cargo dist team,
I am trying to update the github runner in my giuthub pipeline generated by cargo dist.
I changed the github runner to `ubuntu-22.04` here https://github.com/eth-cscs/manta/blob/1.5/dist-workspace.toml under branch `1.5`
Then I ran `cargo dist generate` and `cargo dist init`
Then I check the github pipeline under `.github/workflows/release.yml` but the github runner still points to `ubuntu-20.04`
Any idea why? I suspect it is because I am not in main branch
Contributor guide
Research direction
Reproduce from the reported branch using dist-workspace.toml, then run `cargo dist generate` and `cargo dist init` and inspect `.github/workflows/release.yml`. Compare the generated workflow with the `ubuntu-22.04` setting and determine whether branch context affects generation; done means the documented or corrected behavior is verified for a non-main branch.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- github-actions, rust
- Domain
- ci-cd, release
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100