Skip to content

CI: Set and update weekly the stable toolchain version#264

Open
tcharding wants to merge 1 commit into
rust-bitcoin:masterfrom
tcharding:push-xyzzoulrzvuv
Open

CI: Set and update weekly the stable toolchain version#264
tcharding wants to merge 1 commit into
rust-bitcoin:masterfrom
tcharding:push-xyzzoulrzvuv

Conversation

@tcharding

Copy link
Copy Markdown
Member

Currently we are using stable for the stable toolchain. This is ok but it means we get whatever the Rust project pushes. Instead lets be explicit so we know exactly what version we get. Also add a cron job to update it weekly.

@tcharding

Copy link
Copy Markdown
Member Author

This is a direct copy of the file in rust-bitcoin.

- name: Create Pull Request
uses: peter-evans/create-pull-request@271a8d0340265f705b14b6d32b9829c1cb33d45e # v7.0.8
with:
token: ${{ secrets.APOELSTRA_CREATE_PR_TOKEN }}

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.

Is it intentional to copy the secret as in from rust-bitcoin, not using the one rust-bech32 (.github/workflows/cron-weekly-update-nightly.yml) named secrets.APOELSTRA_RUST_BITCOIN_ORG_CREATE_PR?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Face palm. Fixed, thanks.

permissions:
contents: write
pull-requests: write
steps:

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.

id-token: write is present in .github/workflows/cron-weekly-update-nightly.yml but not here. Just flagging. I suppose it's only necessary if this job connects and authenticates to external services.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

No clue, adding it in. cargo-cult-programming YOLO.

eval "$(cargo rbmt toolchains --update-stable)"
echo "stable_version=$RBMT_STABLE" >> $GITHUB_ENV
- name: Create Pull Request
uses: peter-evans/create-pull-request@271a8d0340265f705b14b6d32b9829c1cb33d45e # v7.0.8

@satsfy satsfy May 13, 2026

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.

Confirm commit, could be 7.0.11.

contents: write
pull-requests: write
steps:
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0

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.

Confirm commit. Could be 5.0.1.

@tcharding

Copy link
Copy Markdown
Member Author

Thanks @satsfy. I'm just going to leave the commit hash comments with the .0 versions so they are the same in both action files.

Currently we are using `stable` for the stable toolchain. This is ok
but it means we get whatever the Rust project pushes. Instead lets be
explicit so we know exactly what version we get. Also add a cron job
to update it weekly.
@tcharding tcharding force-pushed the push-xyzzoulrzvuv branch from e08e424 to 69d4690 Compare May 13, 2026 04:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants