Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 35 additions & 0 deletions .github/workflows/cron-weekly-update-stable.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Update Stable rustc
on:
schedule:
- cron: "0 0 * * 5" # runs every Friday at 00:00 (generally rust releases on Thursday)
workflow_dispatch: # allows manual triggering
permissions: {}
jobs:
format:
name: Update stable rustc
runs-on: ubuntu-24.04
permissions:
contents: write
id-token: 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.

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

with:
persist-credentials: false
- name: Install cargo-rbmt
run: cargo install --git https://github.com/rust-bitcoin/rust-bitcoin-maintainer-tools.git --rev $(cat rbmt-version) cargo-rbmt
- name: Update stable toolchain in Cargo.toml
run: |
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.

with:
token: ${{ secrets.APOELSTRA_RUST_BITCOIN_ORG_CREATE_PR }}
author: Update Stable Rustc Bot <bot@example.com>
committer: Update Stable Rustc Bot <bot@example.com>
title: Automated weekly update to rustc stable (to ${{ env.stable_version }})
body: |
Automated update to Cargo.toml workspace metadata by [create-pull-request](https://github.com/peter-evans/create-pull-request) GitHub action
commit-message: Automated update to rustc stable-${{ env.stable_version }}
branch: create-pull-request/weekly-stable-update
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ rust-version = "1.56.1"

[package.metadata.rbmt.toolchains]
nightly = "nightly-2026-06-05"
stable = "stable"
stable = "1.95.0"

[features]
default = ["std"]
Expand Down
Loading