From 6435aaa70b646faf60047261fa4ed7fa86747612 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Wed, 8 Apr 2020 11:54:31 +0200 Subject: github actions: run when pushed to master or */ci + PRs Avoid double-builds when using "local" branches for PRs. For both macos and fuzz jobs. Closes #5201 --- .github/workflows/fuzz.yml | 11 ++++++++++- .github/workflows/macos.yml | 11 ++++++++++- 2 files changed, 20 insertions(+), 2 deletions(-) (limited to '.github') diff --git a/.github/workflows/fuzz.yml b/.github/workflows/fuzz.yml index ca149d988..f46fa6c4e 100644 --- a/.github/workflows/fuzz.yml +++ b/.github/workflows/fuzz.yml @@ -1,6 +1,15 @@ name: CI -on: [push, pull_request] +on: + # Trigger the workflow on push or pull requests, but only for the + # master branch + push: + branches: + - master + - '*/ci' + pull_request: + branches: + - master jobs: fuzzing: diff --git a/.github/workflows/macos.yml b/.github/workflows/macos.yml index 36eb46d63..6c76ca78a 100644 --- a/.github/workflows/macos.yml +++ b/.github/workflows/macos.yml @@ -1,6 +1,15 @@ name: CI -on: [push, pull_request] +on: + # Trigger the workflow on push or pull requests, but only for the + # master branch + push: + branches: + - master + - '*/ci' + pull_request: + branches: + - master jobs: autotools: -- cgit v1.2.3