add flake update workflow and change to use local mirror of actions
This commit is contained in:
parent
dd771c1b15
commit
d5a9b7bbcf
3 changed files with 19 additions and 8 deletions
|
@ -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
|
|
@ -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
|
||||||
|
|
||||||
|
|
|
@ -25,7 +25,6 @@
|
||||||
wget
|
wget
|
||||||
nix
|
nix
|
||||||
nixfmt-rfc-style
|
nixfmt-rfc-style
|
||||||
|
|
||||||
];
|
];
|
||||||
labels = [ ];
|
labels = [ ];
|
||||||
name = config.networking.hostName;
|
name = config.networking.hostName;
|
||||||
|
|
Loading…
Reference in a new issue