File tree Expand file tree Collapse file tree 1 file changed +42
-0
lines changed
Expand file tree Collapse file tree 1 file changed +42
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Update Flake
2+
3+ on :
4+ workflow_dispatch :
5+ schedule :
6+ - cron : " 43 3 */10 * *" # run every ten days at 3:43 am
7+
8+ env :
9+ BRANCH : auto/update-flake
10+
11+ permissions :
12+ contents : write
13+ pull-requests : write
14+
15+ jobs :
16+ update :
17+ name : " nix flake update"
18+ runs-on : ubuntu-24.04
19+
20+ steps :
21+ - name : Checkout
22+ uses : actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5
23+
24+ - uses : DeterminateSystems/nix-installer-action@c5a866b6ab867e88becbed4467b93592bce69f8a # v21
25+
26+ - name : nix flake update
27+ run : |
28+ git config user.name 'github-actions[bot]'
29+ git config user.email 'github-actions[bot]@users.noreply.github.com'
30+
31+ git branch -f ${BRANCH} origin/main
32+ git checkout ${BRANCH}
33+
34+ nix flake update --commit-lock-file
35+
36+ git push --force origin ${BRANCH}
37+
38+ - name : " Create pull request"
39+ env :
40+ GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
41+ run : |
42+ gh pr create --base main --head ${BRANCH} --title "Update Flake" --body "" || true
You can’t perform that action at this time.
0 commit comments