update #19
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 | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: '0 19 * * *' | |
jobs: | |
nix-update: | |
name: Update lockfile | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
steps: | |
- name: checkout | |
uses: actions/checkout@v4 | |
- name: prepare nix | |
uses: cachix/install-nix-action@V28 | |
- uses: cachix/cachix-action@v15 | |
with: | |
name: devenv | |
- name: Install devenv.sh | |
run: nix profile install nixpkgs#devenv | |
# update | |
- name: Run nvfetcher | |
run: nix run nixpkgs#nvfetcher | |
- name: Run flake update | |
run: nix flake update | |
- name: Run devenv update | |
run: devenv update | |
# git push | |
- name: Commit changes | |
run: | | |
git config --global user.email "actions@github.com" | |
git config --global user.name "GitHub Actions" | |
git add . | |
git commit -m "Update lockfiles" | |
git push origin HEAD |