forked from VOICEVOX/voicevox_core
-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (34 loc) · 1.15 KB
/
update_rust_toolchain.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: update rust toolchain
on:
push:
branches:
- main
schedule:
- cron: "0 0 * * *"
defaults:
run:
shell: bash
jobs:
update-rust-toolchain:
runs-on: ubuntu-latest
if: ${{ github.repository_owner == 'VOICEVOX' }}
steps:
- uses: actions/checkout@v3
- name: set up stable rust
uses: dtolnay/rust-toolchain@stable
- name: update rust toolchain
run: |
rust_version=$(rustup run stable rustc --version | sed -r "s/.*([0-9]+\.[0-9]+\.[0-9]+[^ ]*).*/\1/")
echo "$rust_version" > ./rust-toolchain
echo "RUST_VERSION=$rust_version" >> "$GITHUB_ENV"
- name: create_pr
id: update-rust-toolchain
uses: peter-evans/create-pull-request@v4
with:
commit-message: Update rust toolchain ${{ env.RUST_VERSION }}
branch: update_rust_toolchain_${{ env.RUST_VERSION }}
delete-branch: true
title: Update rust toolchain ${{ env.RUST_VERSION }}
body: |
Update rust toolchain ${{ env.RUST_VERSION }}
(1度プルリクエストを閉じて再度開くことでテストが実行できます。)