Automatically update #15377
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: Automatically update | |
on: | |
push: | |
branches: | |
- master | |
schedule: | |
- cron: '0 */2 * * *' | |
jobs: | |
nvfetcher: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Cache nvfetcher | |
uses: actions/cache@v4 | |
with: | |
path: ~/.local/share/nvfetcher | |
key: ${{ runner.os }}-nvfetcher | |
- uses: cachix/install-nix-action@v27 | |
with: | |
nix_path: nixpkgs=channel:nixos-unstable | |
github_access_token: ${{ secrets.GITHUB_TOKEN }} | |
- uses: cachix/cachix-action@v15 | |
with: | |
name: berberman | |
signingKey: '${{ secrets.CACHIX_SIGNING_KEY }}' | |
- name: Run nvfetcher | |
run: | | |
nix develop --command runghc Update | |
nix develop --profile dev && cachix push berberman dev | |
- name: Run flake check | |
run: nix flake check | |
- name: Commit changes | |
if: ${{ env.COMMIT_MSG != null }} | |
uses: stefanzweifel/git-auto-commit-action@v4 | |
with: | |
commit_message: ${{ env.COMMIT_MSG }} |