From 82b0bc63a3533b1a1ac7d90d4a671d43f7c2ea87 Mon Sep 17 00:00:00 2001 From: Chocobo1 Date: Thu, 4 Feb 2021 16:05:12 +0800 Subject: [PATCH 1/2] Don't trigger Github Actions CI builds after editing a PR's opening post After dropping "edited" keyword, it is the same as the default. --- .github/workflows/ci.yaml | 1 - .github/workflows/file_health.yaml | 1 - 2 files changed, 2 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 54ee71974..1f72ba2f2 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -8,7 +8,6 @@ on: push: branches: [ master ] pull_request: - types: [edited, opened, reopened, synchronize] branches: [ master ] env: diff --git a/.github/workflows/file_health.yaml b/.github/workflows/file_health.yaml index dc659ce27..3280d62d6 100644 --- a/.github/workflows/file_health.yaml +++ b/.github/workflows/file_health.yaml @@ -4,7 +4,6 @@ on: push: branches: [ '**' ] pull_request: - types: [edited, opened, reopened, synchronize] branches: [ '**' ] jobs: From 03e7019182676c628f320f06e2709ee968783809 Mon Sep 17 00:00:00 2001 From: Chocobo1 Date: Thu, 4 Feb 2021 16:15:31 +0800 Subject: [PATCH 2/2] Simplify CI script directives --- .github/workflows/file_health.yaml | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/.github/workflows/file_health.yaml b/.github/workflows/file_health.yaml index 3280d62d6..aeadcf31e 100644 --- a/.github/workflows/file_health.yaml +++ b/.github/workflows/file_health.yaml @@ -1,10 +1,6 @@ name: GitHub Actions file health check -on: - push: - branches: [ '**' ] - pull_request: - branches: [ '**' ] +on: [pull_request, push] jobs: check_file_health: