Update NH #15
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "Update NH" | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: "0 4 1 * *" | |
jobs: | |
main: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Install nix | |
uses: cachix/install-nix-action@master | |
with: | |
install_url: https://nixos.org/nix/install | |
extra_nix_config: | | |
experimental-features = nix-command flakes | |
- uses: actions/checkout@v3 | |
name: Checkout | |
- run: nix flake update | |
- run: nix profile install --inputs-from . nixpkgs#cargo nixpkgs#rustc | |
- run: | | |
cargo install cargo-bump | |
cargo bump | |
- run: cargo update | |
- name: Create Pull Request | |
uses: peter-evans/create-pull-request@v4 | |
with: | |
token: '${{ secrets.PAT }}' | |
title: 'build: bump deps' | |
commit-message: | | |
Bump all deps | |
Co-authored-by: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com> | |
author: GitHub <[email protected]> | |
branch: update | |
branch-suffix: timestamp | |
delete-branch: true |