Skip to content

Commit

Permalink
chore(ci): update example flake on push
Browse files Browse the repository at this point in the history
  • Loading branch information
willruggiano committed Mar 12, 2024
1 parent 8c7a0d7 commit f15c630
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/update-example.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Update example flake

on:
push:
branches:
- main

permissions:
contents: write

jobs:
update-example:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: cachix/install-nix-action@v25
with:
github_access_token: ${{ secrets.GITHUB_TOKEN }}
- run: nix flake lock --update-input neovim-nix ./example
- run: |
git config --global user.name 'github-actions[bot]'
git config --global user.email 'willruggiano@users.noreply.github.com'
git commit -am 'chore: update example' || exit 0
git push

0 comments on commit f15c630

Please sign in to comment.