diff --git a/.github/workflows/docs.yaml b/.github/workflows/docs.yaml index 3f20578874a..f946087d6a8 100644 --- a/.github/workflows/docs.yaml +++ b/.github/workflows/docs.yaml @@ -1,14 +1,19 @@ name: Docs on: - push: - branches: - - main - - v[0-9]+ - pull_request: + pull_request: &pull_request branches: - - main - - v[0-9]+ + - main + - v[0-9]+ + paths: + - .github/workflows/docs.yaml + - .github/actions/setup-nix/** + - default.nix + - nix/** + - docs/** + - '!**.md' + push: + <<: *pull_request jobs: build: diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index f040b6d3452..347cbe049b1 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -1,16 +1,24 @@ name: Test on: - pull: + pull_request: &pull_request branches: - main - v[0-9]+ + paths: + - .github/workflows/test.yaml + - .github/actions/setup-nix/** + - default.nix + - nix/** + - .stylish-haskell.yaml + - postgrest.cabal + - '**.hs' + - test/** + - '!**.md' + push: + <<: *pull_request tags: - v* - pull_request: - branches: - - main - - v[0-9]+ concurrency: group: ${{ github.workflow }}-${{ github.ref }} diff --git a/nix/tools/style.nix b/nix/tools/style.nix index 7c1f35239bf..f4d70765a3f 100644 --- a/nix/tools/style.nix +++ b/nix/tools/style.nix @@ -72,7 +72,7 @@ let .github/release echo "Linting workflows..." - ${actionlint}/bin/actionlint + ${actionlint}/bin/actionlint --ignore 'unexpected key "<<"' ''; in