Compare commits
No commits in common. "9711e5c2731b3076fc7c885bba87ef4d1d844fd8" and "2915f8cc36d080ba1a461ec0555959b240ed7ec1" have entirely different histories.
9711e5c273
...
2915f8cc36
@ -1,41 +0,0 @@
|
|||||||
name: Update Nix Flake
|
|
||||||
|
|
||||||
on:
|
|
||||||
schedule:
|
|
||||||
- cron: "30 0 * * *" # daily run
|
|
||||||
workflow_dispatch: {}
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
update-flake:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- name: Checkout repository
|
|
||||||
uses: actions/checkout@v4
|
|
||||||
with:
|
|
||||||
token: "${{ gitea.token }}"
|
|
||||||
fetch-depth: 0
|
|
||||||
ref: flake-updates
|
|
||||||
|
|
||||||
- name: Fetch latest changes and reset branch
|
|
||||||
run: |
|
|
||||||
git fetch origin master
|
|
||||||
git reset --hard origin/master
|
|
||||||
|
|
||||||
- name: Set up Nix
|
|
||||||
uses: cachix/install-nix-action@v31
|
|
||||||
|
|
||||||
- name: Update Flake
|
|
||||||
run: nix flake update
|
|
||||||
|
|
||||||
- name: Commit and push changes
|
|
||||||
shell: bash
|
|
||||||
run: |
|
|
||||||
git config user.name "Gitea Actions"
|
|
||||||
git config user.email "actions@gitea.local"
|
|
||||||
git add flake.lock
|
|
||||||
if git diff --cached --quiet; then
|
|
||||||
echo "No changes to commit."
|
|
||||||
else
|
|
||||||
git commit -m "Update flake.lock $(date -I)"
|
|
||||||
git push origin flake-updates
|
|
||||||
fi
|
|
@ -2,7 +2,7 @@
|
|||||||
description = "The collection of hydra jobs";
|
description = "The collection of hydra jobs";
|
||||||
|
|
||||||
inputs = {
|
inputs = {
|
||||||
dotfiles.url = "git+https://gitlab.julian-mutter.de/julian/dotfiles?ref=flake-updates";
|
dotfiles.url = "git+https://gitlab.julian-mutter.de/julian/dotfiles";
|
||||||
# dotfiles.inputs.nixpkgs.follows = "nixpkgs";
|
# dotfiles.inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
|
||||||
# sheet-organizer.url = "git+https://gitlab.julian-mutter.de/julian/sheet-organizer";
|
# sheet-organizer.url = "git+https://gitlab.julian-mutter.de/julian/sheet-organizer";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user