From 50d0013e433f7dc94d1823b97b7c39389ed201dd Mon Sep 17 00:00:00 2001 From: ryanformio Date: Wed, 20 Mar 2024 11:28:26 -0500 Subject: [PATCH] setup, build, test run every push and publish runs with synchronize --- .github/workflows/config.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/.github/workflows/config.yml b/.github/workflows/config.yml index b932dd07a9..705a545937 100644 --- a/.github/workflows/config.yml +++ b/.github/workflows/config.yml @@ -1,6 +1,7 @@ name: Build / Test / Publish on: + push: pull_request: types: [opened, synchronize] @@ -10,6 +11,10 @@ env: jobs: setup: runs-on: ubuntu-latest + # Prevents the setup, build, and test jobs from running on pull_request synchronize events + if: > + github.event_name == 'push' || + (github.event_name == 'pull_request' && github.event.action == 'opened') steps: - run: echo "Triggered by ${{ github.event_name }} event." @@ -44,6 +49,10 @@ jobs: build: needs: setup runs-on: ubuntu-latest + # Prevents the setup, build, and test jobs from running on pull_request synchronize events + if: > + github.event_name == 'push' || + (github.event_name == 'pull_request' && github.event.action == 'opened') steps: - name: Check out repository code ${{ github.repository }} on ${{ github.ref }} uses: actions/checkout@v3 @@ -64,6 +73,10 @@ jobs: test: needs: setup runs-on: ubuntu-latest + # Prevents the setup, build, and test jobs from running on pull_request synchronize events + if: > + github.event_name == 'push' || + (github.event_name == 'pull_request' && github.event.action == 'opened') steps: - name: Check out repository code ${{ github.repository }} on ${{ github.ref }} uses: actions/checkout@v3