-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (31 loc) · 926 Bytes
/
update.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
name: "update"
on:
workflow_dispatch: # allows manual triggering
schedule: # run the job at 04:00 every 3 days
- cron: '0 4 */3 * *'
jobs:
update:
permissions:
contents: write
pull-requests: write
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install Nix
uses: DeterminateSystems/nix-installer-action@main
- name: Update flake.lock
uses: DeterminateSystems/update-flake-lock@main
id: update
with:
commit-msg: "flake: update"
pr-title: "flake: update"
pr-labels: |
dependencies
automated
- run: |
if [ -n "${{ steps.update.outputs.pull-request-number }}" ]; then
gh pr merge --auto --rebase ${{ steps.update.outputs.pull-request-number }}
fi
env:
GH_TOKEN: ${{ github.token }}