From 6d2a81ebddb4ceb219fac1d9a820f29d18adfa67 Mon Sep 17 00:00:00 2001 From: Kai Wagner Date: Tue, 24 May 2022 10:50:42 +0200 Subject: [PATCH] PG-375: only run code coverage test on merge Signed-off-by: Kai Wagner --- .github/workflows/coverage_test.yml | 11 ++++++++--- .github/workflows/postgresql-14-build.yml | 2 +- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/.github/workflows/coverage_test.yml b/.github/workflows/coverage_test.yml index b963636..1e6098f 100644 --- a/.github/workflows/coverage_test.yml +++ b/.github/workflows/coverage_test.yml @@ -1,8 +1,13 @@ -name: coverage-test -on: ["push", "pull_request"] +name: coverage_test +on: + pull_request: + types: + - closed jobs: - build: + if_merged: + if: github.event.pull_request.merged == true + build: name: coverage-test runs-on: ubuntu-latest steps: diff --git a/.github/workflows/postgresql-14-build.yml b/.github/workflows/postgresql-14-build.yml index 61347fa..e28162b 100644 --- a/.github/workflows/postgresql-14-build.yml +++ b/.github/workflows/postgresql-14-build.yml @@ -1,5 +1,5 @@ name: postgresql-14-build -on: [push] +on: ["push", "pull_request"] jobs: build: