Schedule rust update in build_and_test.yml (#1687)
* ci cron * correct regex
This commit is contained in:
parent
ba394c4acc
commit
9345b80256
29
.github/workflows/update_rust_toolchain.yml
vendored
Normal file
29
.github/workflows/update_rust_toolchain.yml
vendored
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
name: Update Rust toolchain
|
||||||
|
|
||||||
|
on:
|
||||||
|
schedule:
|
||||||
|
- cron: '0 0 * * *' # Debug
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
update-timestamp:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
with:
|
||||||
|
ref: update_from_ci
|
||||||
|
- uses: actions/setup-python@v3
|
||||||
|
with:
|
||||||
|
python-version: '3.10'
|
||||||
|
|
||||||
|
- name: Setup Git
|
||||||
|
run: |
|
||||||
|
git config --local user.email "actions@github.com"
|
||||||
|
git config --local user.name "GitHub Actions"
|
||||||
|
|
||||||
|
- name: Commit & push data
|
||||||
|
run: |
|
||||||
|
sed -i 's/rustup toolchain install nightly[0-9a-ZA-Z-]*/\`date +"rustup toolchain install nightly-%Y-%m-%d"\`/' ./.github/workflows/build_and_test.yml
|
||||||
|
git add -u
|
||||||
|
git commit -m "Update rust toolchain & time [$(date +'%Y-%m-%d %H:%M')]"
|
||||||
|
git push
|
Loading…
x
Reference in New Issue
Block a user