* feature: update rust-toolchain * add(ci): action that updates `rust-toolchain` We purposefully keep our version a little behind the newest releases, to give people the time to update. Now this is unambigious and we can use all the features our current toolchain allows.
38 lines
1.2 KiB
YAML
38 lines
1.2 KiB
YAML
name: update-flake-lock
|
|
on:
|
|
workflow_dispatch: # allows manual triggering
|
|
schedule:
|
|
- cron: '0 0 * * 0' # runs weekly on Sunday at 00:00
|
|
|
|
jobs:
|
|
lockfile:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v3
|
|
- name: Install Nix
|
|
uses: cachix/install-nix-action@v16
|
|
with:
|
|
extra_nix_config: |
|
|
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}
|
|
- name: install dependencies
|
|
run: nix profile install nixpkgs#jq nixpkgs#curl
|
|
- name: update rust-toolchain
|
|
run: assets/scripts/update-toolchain.sh
|
|
- name: Create Pull Request
|
|
id: cpr
|
|
uses: peter-evans/create-pull-request@v3
|
|
with:
|
|
commit-message: Update `rust-toolchain`
|
|
committer: GitHub <noreply@github.com>
|
|
author: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com>
|
|
signoff: false
|
|
branch: update/rust-toolchain
|
|
delete-branch: true
|
|
title: '[Update] rust-toolchain'
|
|
body: |
|
|
Update rust-toolchain file
|
|
labels: |
|
|
dependencies
|
|
automated
|
|
rust
|