-
Notifications
You must be signed in to change notification settings - Fork 0
29 lines (29 loc) · 963 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
on:
workflow_dispatch:
schedule:
- cron: "0 1 * * *" # every day at 1am UTC(!)
jobs:
update:
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
steps:
- uses: actions/checkout@v4
- uses: DeterminateSystems/nix-installer-action@v16
with:
extra-conf: |
accept-flake-config = true
- uses: DeterminateSystems/update-flake-lock@v24
id: update
with:
commit-msg: "chore(deps): update flake.lock"
pr-title: "chore(deps): update flake.lock"
token: ${{ secrets.GH_TOKEN }}
- name: automerge
run: gh pr merge --auto --rebase ${{ steps.update.outputs.pull-request-number }}
if: steps.update.outputs.pull-request-number != ''
env:
# if using a personal access token, workflows are run twice
# first in the pr and then after merging
GITHUB_TOKEN: ${{ github.token }}