nix-update #21
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-update" | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: "32 19 * * 0" | |
jobs: | |
flake_update: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
pull-requests: write | |
steps: | |
- uses: actions/[email protected] | |
- uses: cachix/install-nix-action@V27 | |
- uses: fregante/setup-git-user@v2 | |
- run: nix flake update --commit-lock-file | |
- run: nix flake check . | |
- run: nix build --no-link .# | |
- name: Generate token | |
id: generate_token | |
uses: tibdex/github-app-token@v2 | |
with: | |
app_id: ${{ vars.PR_FIXUP_APP_ID }} | |
installation_id: ${{ vars.PR_FIXUP_INSTALLATION_ID }} | |
permissions: >- | |
{"contents": "write", "pull_requests": "write"} | |
private_key: ${{ secrets.PR_FIXUP_APP_PRIVATE_KEY }} | |
- name: Create Pull Request | |
uses: peter-evans/create-pull-request@v6 | |
with: | |
token: ${{steps.generate_token.outputs.token}} | |
commit-message: "Update flake.lock" | |
assignees: antifuchs | |
delete-branch: true | |
branch: flake-update | |
base: main | |
title: "Update flake.lock" |