Skip to content

Commit

Permalink
Merge branch 'master' into 20241123_fix_ci_required_jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
mcm001 authored Nov 23, 2024
2 parents 64932c5 + 1ec747e commit 386384d
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 7 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,18 @@ on:
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 == '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'
- name: Check for file changes
uses: dorny/paths-filter@v2
id: filter
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/photon-code-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,11 @@ 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'
- name: Check for file changes
uses: dorny/paths-filter@v2
id: filter
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/photonvision-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,11 @@ 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'
- name: Check for file changes
uses: dorny/paths-filter@v2
id: filter
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,11 @@ 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'
- name: Check for file changes
uses: dorny/paths-filter@v2
id: filter
Expand Down

0 comments on commit 386384d

Please sign in to comment.