ci: Only run PR workflows when files have changed

This commit is contained in:
Wolfgang Walther
2024-02-22 20:12:18 +01:00
committed by Wolfgang Walther
parent e9abb64fc0
commit 19423b0c0a
4 changed files with 43 additions and 7 deletions
+17
View File
@@ -5,6 +5,23 @@ on:
secrets:
CACHIX_AUTH_TOKEN:
required: false
pull_request:
branches:
- main
- v[0-9]+
paths:
- .github/workflows/build.yaml
- .github/actions/setup-nix/**
- .github/scripts/**
- .github/*
- '*.nix'
- nix/**
- .cirrus.yml
- cabal.project*
- postgrest.cabal
- stack.yaml*
- '**.hs'
- '!**.md'
concurrency:
# Terminate all previous runs of the same workflow for pull requests