Skip to content

.github/workflows/update-flake-lock.yml #21

.github/workflows/update-flake-lock.yml

.github/workflows/update-flake-lock.yml #21

on:
workflow_dispatch:
schedule:
- cron: "0 0 * * 0" # runs weekly on Sunday at 00:00
permissions:
contents: write
pull-requests: write
jobs:
lockfile:
runs-on: ubuntu-latest
steps:
- uses: navikt/github-app-token-generator@v1
id: get-token
with:
app-id: ${{ vars.APP_ID }}
private-key: ${{ secrets.PRIVATE_KEY }}
- uses: actions/checkout@v4
- uses: DeterminateSystems/nix-installer-action@main
- uses: DeterminateSystems/update-flake-lock@main
id: update
with:
commit-msg: "chore(flake): bump inputs"
pr-title: "chore(flake): bump inputs"
token: ${{ steps.get-token.outputs.token }}
- run: "gh pr merge --auto --merge ${{ steps.update.outputs.pull-request-number }}"
env:
GH_TOKEN: ${{ github.token }}