add flake update workflow and change to use local mirror of actions
Some checks failed
/ nix fmt (push) Failing after 12s
Update .lock file / flake-update (push) Failing after 15s

This commit is contained in:
Ittihadyya 2024-11-26 14:18:21 +02:00
parent dd771c1b15
commit d5a9b7bbcf
3 changed files with 19 additions and 8 deletions

View file

@ -8,5 +8,5 @@ jobs:
- name: Checkout repository - name: Checkout repository
uses: Ittihadyya/checkout@v4 uses: Ittihadyya/checkout@v4
- name: Install Nix - name: Install Nix
uses: Ittihadyya/nix-installer-action@main uses: Ittihadyya/nix-installer-action@v16
- run: nix fmt $(find ./ -regex '.*.nix$') -- --check - run: nix fmt $(find ./ -regex '.*.nix$') -- --check

View file

@ -1,3 +1,4 @@
name: Update .lock file
on: on:
push: push:
branches: branches:
@ -5,12 +6,23 @@ on:
schedule: schedule:
- cron: '0 2 * * *' - cron: '0 2 * * *'
jobs: jobs:
test: flake-update:
runs-on: docker
steps: steps:
- uses: actions/checkout@v4 - name: Checkout repository
- name: update flake uses: Ittihadyya/checkout@v4
run: | - name: Install nix
nix flake update --experimental-features 'nix-command flakes' uses: Ittihadyya/nix-installer-action@v16
- name: Update flake.lock
uses: Ittihadyya/update-flake-lock@v24
with:
commit-msg: "Update flake.lock"
pr-title: "Update flake.lock"
pr-body: |
```
{{ env.GIT_COMMIT_MESSAGE }}
```
pr-labels: |
dependencies
automated

View file

@ -25,7 +25,6 @@
wget wget
nix nix
nixfmt-rfc-style nixfmt-rfc-style
]; ];
labels = [ ]; labels = [ ];
name = config.networking.hostName; name = config.networking.hostName;