Skip to content

Commit 4ab9e4b

Browse files
committed
docs: add installation instructions
1 parent 21ef9cc commit 4ab9e4b

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

README.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@ This action uses `nix-update` to update flake packages.
44

55
Heavily inspired by [update-flake-lock](https://github.com/DeterminateSystems/update-flake-lock).
66

7+
## Installation
8+
9+
Create a workflow file in your repository, for example `.github/workflows/nix-update.yaml` and start from one of the examples above.
10+
11+
For this action to work you must explicitly allow GitHub Actions to create pull requests. This setting can be found in a repository's settings under Actions > General > Workflow permissions.
12+
713
## Examples
814

915
There are several examples of how to use this workflow to update flake packages.
@@ -18,6 +24,9 @@ on:
1824
workflow_dispatch:
1925
schedule:
2026
- cron: "0 10 * * 0" # https://crontab.guru/#0_10_*_*_0
27+
permissions:
28+
contents: write
29+
pull-requests: write
2130
jobs:
2231
updateFlakePackages:
2332
runs-on: ubuntu-latest
@@ -40,6 +49,9 @@ on:
4049
workflow_dispatch:
4150
schedule:
4251
- cron: "0 10 * * 0" # https://crontab.guru/#0_10_*_*_0
52+
permissions:
53+
contents: write
54+
pull-requests: write
4355
jobs:
4456
updateFlakePackages:
4557
runs-on: ubuntu-latest
@@ -64,6 +76,9 @@ on:
6476
workflow_dispatch:
6577
schedule:
6678
- cron: "0 10 * * 0" # https://crontab.guru/#0_10_*_*_0
79+
permissions:
80+
contents: write
81+
pull-requests: write
6782
jobs:
6883
updateFlakePackages:
6984
runs-on: ubuntu-latest
@@ -88,6 +103,9 @@ on:
88103
workflow_dispatch:
89104
schedule:
90105
- cron: "0 10 * * 0" # https://crontab.guru/#0_10_*_*_0
106+
permissions:
107+
contents: write
108+
pull-requests: write
91109
jobs:
92110
updateFlakePackages:
93111
runs-on: ubuntu-latest
@@ -113,6 +131,9 @@ on:
113131
workflow_dispatch:
114132
schedule:
115133
- cron: "0 10 * * 0" # https://crontab.guru/#0_10_*_*_0
134+
permissions:
135+
contents: write
136+
pull-requests: write
116137
jobs:
117138
updateFlakePackages:
118139
runs-on: ubuntu-latest
@@ -151,6 +172,9 @@ on:
151172
workflow_dispatch:
152173
schedule:
153174
- cron: "0 10 * * 0" # https://crontab.guru/#0_10_*_*_0
175+
permissions:
176+
contents: write
177+
pull-requests: write
154178
jobs:
155179
updateFlakePackages:
156180
runs-on: ubuntu-latest
@@ -179,6 +203,9 @@ on:
179203
workflow_dispatch:
180204
schedule:
181205
- cron: "0 10 * * 0" # https://crontab.guru/#0_10_*_*_0
206+
permissions:
207+
contents: write
208+
pull-requests: write
182209
jobs:
183210
updateFlakePackages:
184211
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)