From fbd6ffab6189b9c32653d422e96894e6e3e44add Mon Sep 17 00:00:00 2001 From: Alex VanTol Date: Fri, 13 Oct 2023 11:09:33 -0500 Subject: [PATCH] fix(ci): run at correct times --- .github/workflows/ci.yaml | 7 +++++-- .github/workflows/docs.yaml | 6 ++++-- .github/workflows/lint.yaml | 3 +++ 3 files changed, 12 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index c55575b20..95e5e4a8c 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -1,10 +1,13 @@ name: CI on: - # run on pushes to master and on pull requests + # run on pushed commits to master and on new commits on pull requests push: + branches: + - master pull_request: - types: [opened, reopened] + types: + - synchronize jobs: Security: diff --git a/.github/workflows/docs.yaml b/.github/workflows/docs.yaml index d1cc1c781..01ab8774d 100644 --- a/.github/workflows/docs.yaml +++ b/.github/workflows/docs.yaml @@ -1,9 +1,11 @@ name: Docs on: - # DON't run on pushes to master and only on pull requests + # DON'T run on pushed commits to master, ONLY on new commits on pull requests pull_request: - types: [opened, reopened] + types: + # only on new commits + - synchronize jobs: build_docs: diff --git a/.github/workflows/lint.yaml b/.github/workflows/lint.yaml index 47dc73d31..c00c0814d 100644 --- a/.github/workflows/lint.yaml +++ b/.github/workflows/lint.yaml @@ -1,5 +1,8 @@ on: pull_request: + types: + # only on new commits + - synchronize issue_comment: types: [created, edited]