From 4d239bc70cb30e9483b592855ec4debf58a57963 Mon Sep 17 00:00:00 2001 From: Matt Morley Date: Sat, 23 Nov 2024 09:42:30 -0800 Subject: [PATCH] asdf --- .github/workflows/photon-code-docs.yml | 27 ++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/.github/workflows/photon-code-docs.yml b/.github/workflows/photon-code-docs.yml index 11d87041fd..8e48453482 100644 --- a/.github/workflows/photon-code-docs.yml +++ b/.github/workflows/photon-code-docs.yml @@ -29,8 +29,33 @@ concurrency: cancel-in-progress: true jobs: + changed: + runs-on: ubuntu-22.04 + # Required permissions + permissions: + pull-requests: read + # Set job outputs to values from filter step + outputs: + docs: ${{ steps.filter.outputs.docs || steps.filter.outputs.workflow }} + code: ${{ steps.filter.outputs.code || steps.filter.outputs.workflow }} + steps: + - name: Check for non-docs file changes + uses: dorny/paths-filter@v2 + id: filter + with: + list-files: 'shell' + filters: | + docs: + - 'docs/**' + workflow: + - '.github/**' + code: + - 'photon-*/**' + build-client: name: "PhotonClient Build" + needs: changed + if: ${{ needs.changed.outputs.code == 'true' }} defaults: run: working-directory: photon-client @@ -52,6 +77,8 @@ jobs: run_docs: runs-on: "ubuntu-22.04" + needs: changed + if: ${{ needs.changed.outputs.code == 'true' }} steps: - name: Checkout code uses: actions/checkout@v4