From 022564331ce1561acdfef268cca8bdabf0b028c6 Mon Sep 17 00:00:00 2001 From: magnouvean <85435692+magnouvean@users.noreply.github.com> Date: Sun, 8 Sep 2024 09:35:51 +0200 Subject: [PATCH] Update workflow names and triggers (#357) --- .github/workflows/ci.yml | 8 +++++++- .github/workflows/github_pages.yml | 12 +++++++++--- 2 files changed, 16 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1fd529b..843a8c1 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,10 +1,16 @@ -name: "Check" +name: "Nix Checks" on: pull_request: + paths: + - '**/*.nix' + - 'flake.lock' + - 'script/**' + # cancel previous runs when pushing new changes concurrency: group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} cancel-in-progress: true + jobs: checks: runs-on: ubuntu-latest diff --git a/.github/workflows/github_pages.yml b/.github/workflows/github_pages.yml index f8ad801..03b0007 100644 --- a/.github/workflows/github_pages.yml +++ b/.github/workflows/github_pages.yml @@ -1,8 +1,14 @@ -name: GitHub Pages +name: GitHub Pages Docs Generation on: push: branches: - - trunk + - trunk + paths: + - 'flake.nix' + - 'flake.lock' + - 'modules/**' + - 'docs/**' + jobs: publish: strategy: @@ -25,4 +31,4 @@ jobs: uses: peaceiris/actions-gh-pages@v4 with: github_token: ${{ secrets.GITHUB_TOKEN }} - publish_dir: ./public \ No newline at end of file + publish_dir: ./public