diff --git a/.github/workflows/update-rust-toolchain.yml b/.github/workflows/update-rust-toolchain.yml new file mode 100644 index 00000000..0c495490 --- /dev/null +++ b/.github/workflows/update-rust-toolchain.yml @@ -0,0 +1,21 @@ +name: update-rust-toolchain +on: + workflow_dispatch: # allows manual triggering + schedule: + - cron: '0 9 * * wed' # runs at 9 am on every wednesday + +jobs: + update-rust-toolchain: + name: "Update Rust Toolchain (rust-toolchain.toml)" + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v3 + - name: update rust toolchain + uses: a-kenji/update-rust-toolchain@v1.1 + with: + token: ${{ secrets.GH_TOKEN_FOR_UPDATES }} + toolchain-path: ./rust-toolchain.toml + commit-msg: 'chore(toolchain): update' + pr-branch: main + pr-title: 'chore(toolchain): update' diff --git a/rust-toolchain.toml b/rust-toolchain.toml new file mode 100644 index 00000000..b44c3df5 --- /dev/null +++ b/rust-toolchain.toml @@ -0,0 +1,3 @@ +[toolchain] +channel = "1.73.0" +components = ["rustfmt", "clippy"]