add update lock action
All checks were successful
do a bunch of stuff / build (push) Successful in 1m17s
All checks were successful
do a bunch of stuff / build (push) Successful in 1m17s
This commit is contained in:
parent
5261c5592b
commit
89e812fddd
1 changed files with 31 additions and 0 deletions
31
.forgejo/workflows/update-lock.yml
Normal file
31
.forgejo/workflows/update-lock.yml
Normal file
|
@ -0,0 +1,31 @@
|
|||
name: Update flake.lock
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
update_flake_lock:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Install Nix
|
||||
uses: DeterminateSystems/nix-installer-action@v14
|
||||
|
||||
- name: Set git config
|
||||
run: |
|
||||
git config --global user.name "ukubot"
|
||||
git config --global user.email "bot@uku.moe"
|
||||
|
||||
- name: Update lockfile
|
||||
run: |
|
||||
export BRANCH="update-lock-$(date -I)"
|
||||
git checkout -b "$BRANCH"
|
||||
nix flake update --commit-lock-file
|
||||
git push origin "$BRANCH"
|
||||
|
||||
- name: Create Pull Request
|
||||
run: |
|
||||
echo EXPLODE
|
Loading…
Add table
Add a link
Reference in a new issue