Skip to content

Update Nightly rustc #40

Update Nightly rustc

Update Nightly rustc #40

name: Update Nightly rustc
on:
schedule:
- cron: "5 0 * * 6" # Saturday at 00:05
workflow_dispatch: # allows manual triggering
permissions: {}
jobs:
format:
name: Update nightly rustc
runs-on: ubuntu-24.04
permissions:
contents: write
id-token: write
pull-requests: write
steps:
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
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 nightly toolchain in Cargo.toml
run: |
eval "$(cargo rbmt toolchains --update-nightly)"
echo "nightly_version=$RBMT_NIGHTLY" >> $GITHUB_ENV
- name: Create Pull Request
uses: peter-evans/create-pull-request@271a8d0340265f705b14b6d32b9829c1cb33d45e # v7.0.8
with:
token: ${{ secrets.APOELSTRA_CREATE_PR_TOKEN }}
author: Update Nightly Rustc Bot <bot@example.com>
committer: Update Nightly Rustc Bot <bot@example.com>
title: Automated daily update to rustc (to ${{ env.nightly_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 ${{ env.nightly_version }}
branch: create-pull-request/daily-nightly-update