Update Nix Flake #17
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 Nix Flake | |
run-name: "Update Nix Flake" | |
on: | |
workflow_dispatch: | |
schedule: | |
# run every thursday | |
- cron: '0 0 * * 4' | |
jobs: | |
update: | |
runs-on: ubuntu-latest | |
permissions: | |
# Give the default GITHUB_TOKEN write permission to commit and push the | |
# added or changed files to the repository. | |
contents: write | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
ref: ${{ github.head_ref }} | |
token: ${{ secrets.GITHUB_TOKEN }} | |
- name: Install Nix | |
uses: DeterminateSystems/nix-installer-action@main | |
- name: Run nix flake update | |
run: nix flake update | |
- uses: stefanzweifel/git-auto-commit-action@v5 | |
with: | |
commit_message: "chore: nix flake update" |