From 3baf72998fddaf056e3ddea2af190e72ecd8c9c8 Mon Sep 17 00:00:00 2001 From: Michael Peyton Jones Date: Mon, 2 Jan 2023 20:34:55 +0000 Subject: [PATCH] Run workflows on PR and push to master only, not push to feature branch --- .github/workflows/haskell.yml | 7 ++++++- .github/workflows/nix.yaml | 6 +++++- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/.github/workflows/haskell.yml b/.github/workflows/haskell.yml index 2f77d1171..2357515fa 100644 --- a/.github/workflows/haskell.yml +++ b/.github/workflows/haskell.yml @@ -1,6 +1,11 @@ name: Haskell CI -on: [push, pull_request] +on: + push: + branches: + - master + pull_request: + jobs: build: diff --git a/.github/workflows/nix.yaml b/.github/workflows/nix.yaml index 272444e96..1e10e5b5f 100644 --- a/.github/workflows/nix.yaml +++ b/.github/workflows/nix.yaml @@ -1,6 +1,10 @@ name: Nix -on: [push, pull_request] +on: + push: + branches: + - master + pull_request: jobs: nix: