Skip to content

Commit 48c4446

Browse files
committed
ci: don't run build action for docs or ci changes
Signed-off-by: Ramon Roche <[email protected]>
1 parent 044de8d commit 48c4446

17 files changed

+66
-38
lines changed

.github/workflows/build_all_targets.yml

+4-2
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,14 @@ on:
1515
- 'beta'
1616
- 'release/**'
1717
paths-ignore:
18-
- 'docs/**' # Do not trigger for any changes under docs
18+
- 'docs/**'
19+
- '.github/**'
1920
pull_request:
2021
branches:
2122
- '*'
2223
paths-ignore:
23-
- 'docs/**' # Do not trigger for any changes under docs
24+
- 'docs/**'
25+
- '.github/**'
2426

2527
jobs:
2628
group_targets:

.github/workflows/checks.yml

+4-2
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,14 @@ on:
55
branches:
66
- 'main'
77
paths-ignore:
8-
- 'docs/**' # Do not trigger for any changes under docs
8+
- 'docs/**'
9+
- '.github/**'
910
pull_request:
1011
branches:
1112
- '*'
1213
paths-ignore:
13-
- 'docs/**' # Do not trigger for any changes under docs
14+
- 'docs/**'
15+
- '.github/**'
1416

1517
jobs:
1618
build:

.github/workflows/clang-tidy.yml

+4-2
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,14 @@ on:
55
branches:
66
- 'main'
77
paths-ignore:
8-
- 'docs/**' # Do not trigger for any changes under docs
8+
- 'docs/**'
9+
- '.github/**'
910
pull_request:
1011
branches:
1112
- '*'
1213
paths-ignore:
13-
- 'docs/**' # Do not trigger for any changes under docs
14+
- 'docs/**'
15+
- '.github/**'
1416
jobs:
1517
build:
1618
runs-on: ubuntu-latest

.github/workflows/compile_macos.yml

+4-2
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,14 @@ on:
55
branches:
66
- 'main'
77
paths-ignore:
8-
- 'docs/**' # Do not trigger for any changes under docs
8+
- 'docs/**'
9+
- '.github/**'
910
pull_request:
1011
branches:
1112
- '*'
1213
paths-ignore:
13-
- 'docs/**' # Do not trigger for any changes under docs
14+
- 'docs/**'
15+
- '.github/**'
1416

1517
jobs:
1618
build:

.github/workflows/compile_ubuntu.yml

+4-2
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,14 @@ on:
88
- 'beta'
99
- 'release/**'
1010
paths-ignore:
11-
- 'docs/**' # Do not trigger for any changes under docs
11+
- 'docs/**'
12+
- '.github/**'
1213
pull_request:
1314
branches:
1415
- '*'
1516
paths-ignore:
16-
- 'docs/**' # Do not trigger for any changes under docs
17+
- 'docs/**'
18+
- '.github/**'
1719

1820
jobs:
1921
build_and_test:

.github/workflows/docs_flaw_checker.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Check for flaws in PX4 Guide source
1+
name: Docs - Check for flaws in PX4 Guide Source
22
# So far:
33
# Modifications of translations files
44
# Broken internal links

.github/workflows/ekf_functional_change_indicator.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ on:
55
branches:
66
- '*'
77
paths-ignore:
8-
- 'docs/**' # Do not trigger for any changes under docs
8+
- 'docs/**'
9+
- '.github/**'
910

1011
jobs:
1112
unit_tests:

.github/workflows/ekf_update_change_indicator.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ name: EKF Update Change Indicator
33
on:
44
push:
55
paths-ignore:
6-
- 'docs/**' # Do not trigger for any changes under docs
6+
- 'docs/**'
7+
- '.github/**'
78

89
jobs:
910
unit_tests:

.github/workflows/failsafe_sim.yml

+4-2
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,14 @@ on:
55
branches:
66
- 'main'
77
paths-ignore:
8-
- 'docs/**' # Do not trigger for any changes under docs
8+
- 'docs/**'
9+
- '.github/**'
910
pull_request:
1011
branches:
1112
- '*'
1213
paths-ignore:
13-
- 'docs/**' # Do not trigger for any changes under docs
14+
- 'docs/**'
15+
- '.github/**'
1416

1517
jobs:
1618
build:

.github/workflows/flash_analysis.yml

+4-2
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,14 @@ on:
1010
branches:
1111
- 'main'
1212
paths-ignore:
13-
- 'docs/**' # Do not trigger for any changes under docs
13+
- 'docs/**'
14+
- '.github/**'
1415
pull_request:
1516
branches:
1617
- '*'
1718
paths-ignore:
18-
- 'docs/**' # Do not trigger for any changes under docs
19+
- 'docs/**'
20+
- '.github/**'
1921

2022
env:
2123
MIN_FLASH_POS_DIFF_FOR_COMMENT: 50

.github/workflows/mavros_mission_tests.yml

+4-2
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,14 @@ on:
55
branches:
66
- 'main'
77
paths-ignore:
8-
- 'docs/**' # Do not trigger for any changes under docs
8+
- 'docs/**'
9+
- '.github/**'
910
pull_request:
1011
branches:
1112
- '*'
1213
paths-ignore:
13-
- 'docs/**' # Do not trigger for any changes under docs
14+
- 'docs/**'
15+
- '.github/**'
1416

1517
jobs:
1618
build:

.github/workflows/mavros_offboard_tests.yml

+4-2
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,14 @@ on:
55
branches:
66
- 'main'
77
paths-ignore:
8-
- 'docs/**' # Do not trigger for any changes under docs
8+
- 'docs/**'
9+
- '.github/**'
910
pull_request:
1011
branches:
1112
- '*'
1213
paths-ignore:
13-
- 'docs/**' # Do not trigger for any changes under docs
14+
- 'docs/**'
15+
- '.github/**'
1416

1517
jobs:
1618
build:

.github/workflows/nuttx_env_config.yml

+4-2
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,14 @@ on:
55
branches:
66
- 'main'
77
paths-ignore:
8-
- 'docs/**' # Do not trigger for any changes under docs
8+
- 'docs/**'
9+
- '.github/**'
910
pull_request:
1011
branches:
1112
- '*'
1213
paths-ignore:
13-
- 'docs/**' # Do not trigger for any changes under docs
14+
- 'docs/**'
15+
- '.github/**'
1416

1517
jobs:
1618
build:

.github/workflows/pr_comment.yml

+9-9
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Comment Workflow
1+
name: Docs - Comment Workflow
22
on:
33
workflow_run:
44
workflows: ["Check for flaws"]
@@ -10,7 +10,7 @@ jobs:
1010
pull-requests: write # for marocchino/sticky-pull-request-comment
1111
name: Comments
1212
runs-on: ubuntu-latest
13-
steps:
13+
steps:
1414
- name: 'Download PR artifact'
1515
uses: actions/github-script@v6
1616
with:
@@ -34,7 +34,7 @@ jobs:
3434
3535
- name: 'Unzip artifact'
3636
run: unzip pr_number.zip
37-
37+
3838
# Doesn't work across workflows
3939
#- name: Get artifacts from flaw checker workflow
4040
# uses: actions/download-artifact@v3
@@ -53,7 +53,7 @@ jobs:
5353
uses: juliangruber/read-file-action@v1
5454
with:
5555
path: ./pr_number
56-
56+
5757
- name: File detail info
5858
run: |
5959
echo "${{ steps.read-errors-by-page.outputs.content }}"
@@ -68,22 +68,22 @@ jobs:
6868
number: ${{ steps.read-error-pr-number.outputs.content }}
6969
header: flaws
7070
message: ${{ steps.read-errors-by-page.outputs.content || 'No flaws found' }}
71-
71+
7272
#- name: Dump GitHub context
7373
# env:
7474
# GITHUB_CONTEXT: ${{ toJSON(github) }}
75-
# run: echo "$GITHUB_CONTEXT"
76-
75+
# run: echo "$GITHUB_CONTEXT"
76+
7777
# Would like to do this, but it doesn't work (for me).
78-
# Moving to time-based, or triggering on workflow
78+
# Moving to time-based, or triggering on workflow
7979
#- name: Wait for artifacts upload to succeed
8080
# uses: lewagon/[email protected]
8181
# with:
8282
# ref: ${{ github.ref }}
8383
# check-name: 'Archive production artifacts'
8484
# repo-token: ${{ secrets.GITHUB_TOKEN }}
8585
# wait-interval: 80
86-
86+
8787
# Not needed for now - trying to trigger off the workflow
8888
#- name: Sleep for 80 seconds
8989
# run: sleep 80s

.github/workflows/python_checks.yml

+4-2
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,14 @@ on:
55
branches:
66
- 'main'
77
paths-ignore:
8-
- 'docs/**' # Do not trigger for any changes under docs
8+
- 'docs/**'
9+
- '.github/**'
910
pull_request:
1011
branches:
1112
- '*'
1213
paths-ignore:
13-
- 'docs/**' # Do not trigger for any changes under docs
14+
- 'docs/**'
15+
- '.github/**'
1416

1517
jobs:
1618
build:

.github/workflows/ros_translation_node.yml

+4-2
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,14 @@ on:
44
branches:
55
- 'main'
66
paths-ignore:
7-
- 'docs/**' # Do not trigger for any changes under docs
7+
- 'docs/**'
8+
- '.github/**'
89
pull_request:
910
branches:
1011
- '*'
1112
paths-ignore:
12-
- 'docs/**' # Do not trigger for any changes under docs
13+
- 'docs/**'
14+
- '.github/**'
1315
defaults:
1416
run:
1517
shell: bash

.github/workflows/sitl_tests.yml

+4-2
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,14 @@ on:
1010
branches:
1111
- 'main'
1212
paths-ignore:
13-
- 'docs/**' # Do not trigger for any changes under docs
13+
- 'docs/**'
14+
- '.github/**'
1415
pull_request:
1516
branches:
1617
- '*'
1718
paths-ignore:
18-
- 'docs/**' # Do not trigger for any changes under docs
19+
- 'docs/**'
20+
- '.github/**'
1921

2022
jobs:
2123
build:

0 commit comments

Comments
 (0)