Skip to content

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

Merged
notmandatory merged 2 commits into
masterfrom
ci/add_release_plz_fix_3
Sep 16, 2026
Merged

notmandatory merged 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

Comment thread .github/workflows/release-plz.yml
Comment thread .github/workflows/test.yml
@notmandatory
notmandatory force-pushed the ci/add_release_plz_fix_3 branch 3 times, most recently from 96ea820 to d682236 Compare September 16, 2026 20:11
@notmandatory
notmandatory force-pushed the ci/add_release_plz_fix_3 branch from d682236 to 5d36c51 Compare September 16, 2026 20:16

@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.

ACK 5d36c51

@notmandatory
notmandatory merged commit 5d36c51 into master Sep 16, 2026
10 checks passed
@notmandatory

notmandatory commented Sep 16, 2026

Copy link
Copy Markdown
Member Author

confirmed that no release PR is created by the release-pr job if there's nothing new to release. Also that that release job tries to run but can be canceled, or if I let it run since there's not change in Cargo.toml version it won't do anything anyway (as tested manually above).

https://github.com/bitcoindevkit/rust-cktap/actions/runs/35149348286

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