Skip to content

Update rust-overlay

Update rust-overlay #3

name: Update rust-overlay
on:
schedule:
- cron: "0 3 * * *" # Every day 03:00 UTC
jobs:
update:
permissions:
contents: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: cachix/install-nix-action@v27
with:
nix_path: nixpkgs=channel:nixos-unstable
- run: nix flake lock --update-input rust-overlay
- name: Commit changes
id: commit
continue-on-error: true
run: |
git config user.name "Github Action"
git config user.email "[email protected]"
git add flake.lock
git commit -m "build: update rust-overlay"
- name: Push changes
if: steps.commit.outcome == 'success'
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: main