diff options
| author | Aram Drevekenin <aram@poor.dev> | 2026-05-04 09:55:15 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-05-04 09:55:15 +0200 |
| commit | 8a0594f8eb5c053b7ca3df2bd9f6215accb2fc3b (patch) | |
| tree | ef426b754244f1e10ddbb11e65c94b6f719e9a9c /xtask | |
| parent | Fullscreen resize fixes (#5117) (diff) | |
| download | sl0ppij-8a0594f8eb5c053b7ca3df2bd9f6215accb2fc3b.tar.gz sl0ppij-8a0594f8eb5c053b7ca3df2bd9f6215accb2fc3b.tar.xz sl0ppij-8a0594f8eb5c053b7ca3df2bd9f6215accb2fc3b.zip | |
fix: when publishing, publish current branch rather than hardcoded main (#5127)
* fix: when publishing, publish current branch rather than hardcoded main
* add pr
Diffstat (limited to 'xtask')
| -rw-r--r-- | xtask/src/pipelines.rs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/xtask/src/pipelines.rs b/xtask/src/pipelines.rs index 16129d43..1c4a477e 100644 --- a/xtask/src/pipelines.rs +++ b/xtask/src/pipelines.rs @@ -359,7 +359,10 @@ pub fn publish(sh: &Shell, flags: flags::Publish) -> anyhow::Result<()> { } else if flags.no_push { println!("Skipping push due to no-push"); } else { - cmd!(sh, "git push --atomic {remote} main v{version}") + let branch = cmd!(sh, "git rev-parse --abbrev-ref HEAD") + .read() + .context(err_context)?; + cmd!(sh, "git push --atomic {remote} {branch} v{version}") .run() .context(err_context)?; } |
