Skip to content

Bump package indices #175

Bump package indices

Bump package indices #175

name: Bump package indices
on:
workflow_dispatch: # allows manual triggering
schedule:
- cron: '14 3 * * 0' # runs weekly on Sunday at 03:14 UTC
jobs:
lockfile:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v7
- name: Install Nix
uses: cachix/install-nix-action@v31
with:
extra-conf: |
accept-flake-config = true
- name: Update flake.lock
env:
GH_TOKEN: ${{ secrets.GH_TOKEN_FOR_UPDATES }}
run: |
# See https://github.com/orgs/community/discussions/26560 and https://github.com/actions/checkout/issues/13
git config user.name "github-actions[bot]"
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
git checkout -b update-flake-inputs
nix flake update CHaP hackage-nix \
--commit-lock-file --commit-lockfile-summary 'Update CHaP and hackage-nix flake inputs'
git push -u origin update-flake-inputs
gh pr create --fill -B main -l dependencies,automated