github: don't run default-build if there are no changes

This commit is contained in:
Aly Raffauf 2024-08-04 11:28:13 -04:00
parent a79af705fe
commit 1fb1be721c

View file

@ -8,6 +8,7 @@ on:
workflow_dispatch: workflow_dispatch:
jobs: jobs:
default-build: default-build:
if: contains(github.event.head_commit.message, 'flake/') || contains(github.event.head_commit.message, 'flake.nix') || contains(github.event.head_commit.message, 'flake.lock')
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@main - uses: actions/checkout@main