Skip to content

ci: use default branch and simplify release-plz workflow - #79

Open
notmandatory wants to merge 2 commits into
masterfrom
ci/add_release_plz_fix_3
Open

notmandatory wants to merge 2 commits into
masterfrom
ci/add_release_plz_fix_3

Conversation

@notmandatory

@notmandatory notmandatory commented Sep 14, 2026

Copy link
Copy Markdown
Member

Description

Replace the hard-coded master branch check in the release-plz workflow with github.event.repository.default_branch. Update the workflow comments and CONTRIBUTING.md release instructions to refer to the default branch. Remove the explicit release-pr/release command choice and per-job conditionals so the workflow runs both jobs on the selected branch.

Notes to the reviewers

This should be the last change to the release workflow. I didn't want to make it completely automated since that would prevent us from starting the release workflow on different branches. Only one release can be active at one time per the release-plz tool.

I also fixed #78

Checklists

All Submissions:

  • I've signed all my commits
  • I followed the contribution guidelines
  • I ran cargo fmt and cargo clippy before committing

@notmandatory
notmandatory requested a review from reez as a code owner September 14, 2026 23:37
@notmandatory notmandatory self-assigned this Sep 14, 2026
Replace the hard-coded `master` branch check in the release-plz
workflow with `github.event.repository.default_branch`. Update the
workflow comments and CONTRIBUTING.md release instructions to refer
to the default branch. Remove the explicit `release-pr`/`release`
command choice and per-job conditionals so the workflow runs both
jobs on the selected branch.
@notmandatory
notmandatory force-pushed the ci/add_release_plz_fix_3 branch from a910e6d to ef5a33a Compare September 15, 2026 00:18

@reez reez left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Concept ACK

2 small comments/questions

name: Publish Rust Release
runs-on: ubuntu-latest
if: ${{ github.repository_owner == 'bitcoindevkit' && inputs.command == 'release' }}
if: ${{ github.repository_owner == 'bitcoindevkit' }}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Without the command input doesn't this job now get queued for approval on every dispatch including the ones that only refresh the release PR?

At least I'm not seeing where release-plz checks that the PR was merged.

With the default release_always = true I feel like won't it publish whenever the version isn't on crates.io yet reviewed PR or not?

uses: dtolnay/rust-toolchain@stable
with:
toolchain: ${{ matrix.rust.version }}
override: true

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does the MSRV job still build with 1.85.0 without this?

dtolnay only sets the rustup default and rust-toolchain.toml (channel = "stable") takes precedence over that I believe.

Would RUSTUP_TOOLCHAIN: ${{ matrix.rust.version }} at the job level fix it? Same for the test job.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Update all CI workflow actions to use Node 24

2 participants