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

update-flake

update-flake #21

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/checkout@v4.1.1
- name: install Nix
uses: cachix/install-nix-action@7ac1ec25491415c381d9b62f0657c7a028df52a7 # v24
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