Skip to content
This repository has been archived by the owner on Jan 23, 2024. It is now read-only.

update-flake

update-flake #26

Workflow file for this run

---
name: update-flake
on:
workflow_dispatch: # allows manual triggering
schedule:
- cron: "0 4 * * 1" # runs weekly on Monday at 04:00 UTC
jobs:
lockfile:
runs-on: ubuntu-latest
steps:
- name: checkout repository
uses: actions/[email protected]
- name: install Nix
uses: cachix/install-nix-action@6004951b182f8860210c8d6f0d808ec5b1a33d28 # v25
with:
extra_nix_config: |
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}
- name: update flake.lock
id: update
uses: DeterminateSystems/update-flake-lock@v20
with:
token: ${{ secrets.NIX_FLAKES_UPDATE_TOKEN }}
pr-title: "chore(flake): update flake.lock"
commit-msg: "chore(flake): update flake.lock"
branch: "update_flake"
git-author-name: "JesusMtnez[bot]"
git-author-email: "github-actions[bot]@users.noreply.github.com"
git-committer-name: "JesusMtnez[bot]"
git-committer-email: "github-actions[bot]@users.noreply.github.com"
- name: set automerge for the pr
if: ${{ steps.update.outputs.pull-request-operation }} == 'created'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PR: ${{ steps.update.outputs.pull-request-number }}
run: gh pr merge --auto --squash --delete-branch $PR