ci: Only run PR workflows when files have changed
This commit is contained in:
committed by
Wolfgang Walther
parent
e9abb64fc0
commit
19423b0c0a
@@ -5,6 +5,23 @@ on:
|
|||||||
secrets:
|
secrets:
|
||||||
CACHIX_AUTH_TOKEN:
|
CACHIX_AUTH_TOKEN:
|
||||||
required: false
|
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:
|
concurrency:
|
||||||
# Terminate all previous runs of the same workflow for pull requests
|
# Terminate all previous runs of the same workflow for pull requests
|
||||||
|
|||||||
@@ -7,10 +7,6 @@ on:
|
|||||||
- v[0-9]+
|
- v[0-9]+
|
||||||
tags:
|
tags:
|
||||||
- v*
|
- v*
|
||||||
pull_request:
|
|
||||||
branches:
|
|
||||||
- main
|
|
||||||
- v[0-9]+
|
|
||||||
|
|
||||||
concurrency:
|
concurrency:
|
||||||
# Terminate all previous runs of the same workflow for pull requests
|
# Terminate all previous runs of the same workflow for pull requests
|
||||||
@@ -20,13 +16,11 @@ concurrency:
|
|||||||
jobs:
|
jobs:
|
||||||
docs:
|
docs:
|
||||||
name: Docs
|
name: Docs
|
||||||
if: github.event_name == 'push'
|
|
||||||
uses: ./.github/workflows/docs.yaml
|
uses: ./.github/workflows/docs.yaml
|
||||||
|
|
||||||
|
|
||||||
test:
|
test:
|
||||||
name: Test
|
name: Test
|
||||||
if: github.event_name == 'push'
|
|
||||||
uses: ./.github/workflows/test.yaml
|
uses: ./.github/workflows/test.yaml
|
||||||
secrets:
|
secrets:
|
||||||
CACHIX_AUTH_TOKEN: ${{ secrets.CACHIX_AUTH_TOKEN }}
|
CACHIX_AUTH_TOKEN: ${{ secrets.CACHIX_AUTH_TOKEN }}
|
||||||
@@ -41,7 +35,6 @@ jobs:
|
|||||||
|
|
||||||
Build-Cabal-Arm:
|
Build-Cabal-Arm:
|
||||||
name: Build aarch64 (Cabal, GHC 9.4.8)
|
name: Build aarch64 (Cabal, GHC 9.4.8)
|
||||||
if: github.event_name == 'push'
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
outputs:
|
outputs:
|
||||||
remotepath: ${{ steps.Remote-Dir.outputs.remotepath }}
|
remotepath: ${{ steps.Remote-Dir.outputs.remotepath }}
|
||||||
|
|||||||
@@ -2,6 +2,17 @@ name: Docs
|
|||||||
|
|
||||||
on:
|
on:
|
||||||
workflow_call:
|
workflow_call:
|
||||||
|
pull_request:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
- v[0-9]+
|
||||||
|
paths:
|
||||||
|
- .github/workflows/docs.yaml
|
||||||
|
- .github/actions/setup-nix/**
|
||||||
|
- default.nix
|
||||||
|
- nix/**
|
||||||
|
- docs/**
|
||||||
|
- '!**.md'
|
||||||
|
|
||||||
concurrency:
|
concurrency:
|
||||||
# Terminate all previous runs of the same workflow for pull requests
|
# Terminate all previous runs of the same workflow for pull requests
|
||||||
|
|||||||
@@ -5,6 +5,21 @@ on:
|
|||||||
secrets:
|
secrets:
|
||||||
CACHIX_AUTH_TOKEN:
|
CACHIX_AUTH_TOKEN:
|
||||||
required: false
|
required: false
|
||||||
|
pull_request:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
- v[0-9]+
|
||||||
|
paths:
|
||||||
|
- .github/workflows/test.yaml
|
||||||
|
- .github/actions/setup-nix/**
|
||||||
|
- default.nix
|
||||||
|
- nix/**
|
||||||
|
- .stylish-haskell.yaml
|
||||||
|
- cabal.project
|
||||||
|
- postgrest.cabal
|
||||||
|
- '**.hs'
|
||||||
|
- test/**
|
||||||
|
- '!**.md'
|
||||||
|
|
||||||
concurrency:
|
concurrency:
|
||||||
# Terminate all previous runs of the same workflow for pull requests
|
# Terminate all previous runs of the same workflow for pull requests
|
||||||
|
|||||||
Reference in New Issue
Block a user