ci: trigger the ci less often by filtering trigger files

This commit is contained in:
NotAShelf 2023-02-16 22:01:59 +03:00
parent 322639a66a
commit 0a4b4ff513
No known key found for this signature in database
GPG key ID: 5B5C8895F28445F1
2 changed files with 7 additions and 4 deletions

View file

@ -6,9 +6,9 @@ on:
branches: branches:
- main - main
paths-ignore: paths-ignore:
- '.github/**' - .github/**
- './assets/**' - assets/**
- '.gitignore' - .gitignore
jobs: jobs:
nix: nix:
@ -44,5 +44,5 @@ jobs:
run: git config --global init.defaultBranch main run: git config --global init.defaultBranch main
- name: Validate Flakes - name: Validate Flakes
run: nix flake check run: nix flake check
- name: Build Hyprland with default settings - name: Build Hneovim-flake with default settings
run: nix build .#${{ matrix.package }} --print-build-logs run: nix build .#${{ matrix.package }} --print-build-logs

View file

@ -4,6 +4,9 @@ on:
push: push:
branches: branches:
- main - main
paths:
# build the manuals only when docs directory is updated
- docs/**
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages # Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions: permissions: