Nix Flake update #40
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: Nix Flake update | |
on: | |
schedule: | |
- cron: "0 0 * * 0" | |
workflow_dispatch: | |
permissions: | |
contents: write | |
pull-requests: write | |
statuses: read | |
env: | |
NIXPKGS_ALLOW_UNFREE: 1 | |
jobs: | |
nix: | |
runs-on: ubuntu-latest | |
steps: | |
- id: checkout | |
name: Checkout repository | |
uses: actions/checkout@v4 | |
- id: install_nix | |
name: "Install Nix ❄️" | |
uses: cachix/install-nix-action@v26 | |
- id: cachix | |
name: "Enable Cachix ❄️" | |
uses: cachix/cachix-action@v14 | |
with: | |
name: ${{ secrets.CACHIX_CACHE_NAME }} | |
authToken: ${{ secrets.CACHIX_AUTH_TOKEN }} | |
useDaemon: false | |
skipPush: false | |
- id: update_nix_flake | |
name: Update flake.lock | |
uses: DeterminateSystems/update-flake-lock@v21 | |
with: | |
sign-commits: false | |
gpg-fingerprint: ${{ secrets.GPG_FINGERPRINT }} | |
gpg-passphrase: ${{ secrets.GPG_PASSPHRASE }} | |
gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }} | |
git-author-email: "[email protected]" | |
git-author-name: "Nix Flake Bot" | |
git-committer-email: "[email protected]" | |
git-committer-name: "Nix Flake Bot" | |
- id: print_pr_number | |
name: Pull request number | |
run: | | |
echo PR number: ${{ steps.update_nix_flake.outputs.pull-request-number }} | |
#- name: Nix Flake update | |
# run: > | |
# nix flake update --verbose | |
#- name: Update flake.lock | |
# uses: stefanzweifel/git-auto-commit-action@v4 | |
# with: | |
# commit_message: Update flake.lock | |
# branch: trunk | |
# commit_options: '--no-verify --signoff' | |
# file_pattern: flake.lock | |
# commit_user_name: Nix Flake Bot | |
# commit_author: Nix Flake Bot <[email protected]> | |
# skip_dirty_check: false | |
# skip_fetch: true |