refraction/.github/workflows/update-flake.yml
Sefa Eyeoglu 833c45ea56
refactor: use DetSys flake update action
Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
2024-08-03 10:08:39 +02:00

39 lines
915 B
YAML

name: Update flake.lock
on:
schedule:
# run every saturday
- cron: '0 0 * * 6'
workflow_dispatch:
jobs:
update:
name: Run update
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
env:
PR_BRANCH: 'update-lockfiles'
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install Nix
uses: DeterminateSystems/nix-installer-action@v13
- name: Update flake.lock
id: update
uses: DeterminateSystems/update-flake-lock@main
with:
pr-title: "nix: update flake.lock"
- name: Enable Pull Request Automerge
if: steps.cpr.outputs.pull-request-operation == 'created'
uses: peter-evans/enable-pull-request-automerge@v3
with:
pull-request-number: ${{ steps.update.outputs.pull-request-number }}
merge-method: rebase