Skip to content

Commit

Permalink
Merge pull request #1 from NuschtOS/gh-action
Browse files Browse the repository at this point in the history
gh-action: init
  • Loading branch information
SuperSandro2000 authored Jun 28, 2024
2 parents b034716 + d0eadb0 commit 60a249d
Show file tree
Hide file tree
Showing 5 changed files with 408 additions and 72 deletions.
6 changes: 6 additions & 0 deletions .github/depedabot.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
version: 2
updates:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "daily"
32 changes: 32 additions & 0 deletions .github/workflows/flake-build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: "flake check"

on:
push:
branches: [ main ]
tags: [ '*' ]
pull_request:

jobs:
build:
runs-on: ubuntu-latest

strategy:
fail-fast: false
matrix:
target: [ "unstable", "stable" ]

steps:
- uses: actions/checkout@v4

- uses: cachix/install-nix-action@V27

- name: patch stable
if: matrix.target == "stable"
run: |
sed -i flake.nix \
-e 's|url = "github:NixOS/nixpkgs/nixos-unstable"|follows = "nixpkgs-stable"|g' \
-e 's|url = "github:nix-community/home-manager"|follows = "home-manager-stable"|g' \
-e 's|url = "github:nix-community/nixvim""|follows = "nixvim-stable"|g'
- run: nix build -L

18 changes: 18 additions & 0 deletions .github/workflows/update-flakes.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: "Update flakes"

on:
workflow_dispatch:
schedule:
- cron: '0 0 * * 0'

jobs:
update-flakes:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- uses: cachix/install-nix-action@V27

- uses: DeterminateSystems/update-flake-lock@v22
with:
token: ${{ github.token }}
Loading

0 comments on commit 60a249d

Please sign in to comment.