From 1ec747ee0ea2cc446b24fd94f9176a4b400bd555 Mon Sep 17 00:00:00 2001 From: Matt Morley Date: Sat, 23 Nov 2024 10:25:27 -0800 Subject: [PATCH] Run on every commit to main --- .github/workflows/build.yml | 4 ++-- .github/workflows/photon-code-docs.yml | 4 ++-- .github/workflows/photonvision-docs.yml | 4 ++-- .github/workflows/python.yml | 3 ++- 4 files changed, 8 insertions(+), 7 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 0492071f61..f012fed10b 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -19,8 +19,8 @@ jobs: pull-requests: read # Set job outputs to values from filter step outputs: - docs: ${{ steps.filter.outputs.docs == 'true' || steps.filter.outputs.workflow == 'true' }} - code: ${{ steps.filter.outputs.code == 'true' || steps.filter.outputs.workflow == 'true' }} + docs: ${{ steps.filter.outputs.docs == 'true' || steps.filter.outputs.workflow == 'true' || github.event_name != 'pull_request' }} + code: ${{ steps.filter.outputs.code == 'true' || steps.filter.outputs.workflow == 'true' || github.event_name != 'pull_request' }} steps: - uses: actions/checkout@v4 diff --git a/.github/workflows/photon-code-docs.yml b/.github/workflows/photon-code-docs.yml index a1744543b8..dfd27dd387 100644 --- a/.github/workflows/photon-code-docs.yml +++ b/.github/workflows/photon-code-docs.yml @@ -28,8 +28,8 @@ jobs: pull-requests: read # Set job outputs to values from filter step outputs: - docs: ${{ steps.filter.outputs.docs == 'true' || steps.filter.outputs.workflow == 'true' }} - code: ${{ steps.filter.outputs.code == 'true' || steps.filter.outputs.workflow == 'true' }} + docs: ${{ steps.filter.outputs.docs == 'true' || steps.filter.outputs.workflow == 'true' || github.event_name != 'pull_request' }} + code: ${{ steps.filter.outputs.code == 'true' || steps.filter.outputs.workflow == 'true' || github.event_name != 'pull_request' }} steps: - uses: actions/checkout@v4 if: github.event_name != 'pull_request' diff --git a/.github/workflows/photonvision-docs.yml b/.github/workflows/photonvision-docs.yml index 43750083ce..f162b8f40a 100644 --- a/.github/workflows/photonvision-docs.yml +++ b/.github/workflows/photonvision-docs.yml @@ -18,8 +18,8 @@ jobs: pull-requests: read # Set job outputs to values from filter step outputs: - docs: ${{ steps.filter.outputs.docs == 'true' || steps.filter.outputs.workflow == 'true' }} - code: ${{ steps.filter.outputs.code == 'true' || steps.filter.outputs.workflow == 'true' }} + docs: ${{ steps.filter.outputs.docs == 'true' || steps.filter.outputs.workflow == 'true' || github.event_name != 'pull_request' }} + code: ${{ steps.filter.outputs.code == 'true' || steps.filter.outputs.workflow == 'true' || github.event_name != 'pull_request' }} steps: - uses: actions/checkout@v4 if: github.event_name != 'pull_request' diff --git a/.github/workflows/python.yml b/.github/workflows/python.yml index c20f9dcfc5..83fee02041 100644 --- a/.github/workflows/python.yml +++ b/.github/workflows/python.yml @@ -20,7 +20,8 @@ jobs: pull-requests: read # Set job outputs to values from filter step outputs: - py: ${{ steps.filter.outputs.python == 'true' || steps.filter.outputs.workflow == 'true' }} + # We need to always rerun if workflows change or on commits/tags + py: ${{ steps.filter.outputs.python == 'true' || steps.filter.outputs.workflow == 'true' || github.event_name != 'pull_request' }} steps: - uses: actions/checkout@v4 if: github.event_name != 'pull_request'